cnxsoft changed the topic of #imx6-dongle to: i.MX6 HDMI Dongle Software Development. You can also join us at https://groups.google.com/forum/?fromgroups#!forum/imx6-dongle - IRC Logs - http://irclog.whitequark.org/imx6-dongle/
allanmac has quit [Read error: Connection reset by peer]
cnxsoft has joined #imx6-dongle
cnxsoft has quit [Quit: cnxsoft]
eebrah has joined #imx6-dongle
Noskcaj has joined #imx6-dongle
Noskcaj has joined #imx6-dongle
_whitelogger has joined #imx6-dongle
jas-hacks_ has joined #imx6-dongle
<jas-hacks_> abrasive: Hi, do you know if uboot will read boot.src?
<abrasive> what's boot.src supposed to be?
jas-hacks_ has quit [Read error: Connection reset by peer]
jas-hacks_ has joined #imx6-dongle
<jas-hacks_> abrasive: the uboot script file, I will check
<abrasive> it looks for one named /boot/bootcmd
<jas-hacks_> so I can move setting for env variables into bootcmd
_whitelogger has joined #imx6-dongle
_whitelogger has joined #imx6-dongle
<abrasive> yes
<abrasive> but not video
<jas-hacks_> I was hoping to put video mode in there
<abrasive> saveenv or nothing
<abrasive> sorry
<abrasive> cos of how early video initialises.
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
<jas-hacks_> looking at gk802.h it still refers to :
<jas-hacks_> + "script=boot.scr\0" \
<jas-hacks_> + "uimage=/boot/uImage\0" \
GasVesa has quit [Ping timeout: 260 seconds]
<jas-hacks_> I thought video was initialised in kernel, therefore 'video=' should be set even from boot.scr
<abrasive> mmm, i took out the script= line in that bad commit
<abrasive> oh, i meant *uboot* video
<abrasive> kernel video can be set from bootcmd.
<jas-hacks_> not bothered about *uboot* video
<jas-hacks_> for now
<jas-hacks_> problem at the moment is that the kernel detects based on EDID which works but for my monitor it sets resolutions to 1680x1050 which requires more vmalloc for video and xorg to run.
<jas-hacks_> although it works :) it runs like a dog
<abrasive> heh
<abrasive> i had reports the video= wasn't overriding the auto mode setting actually
<abrasive> perhaps you can confirm
<jas-hacks_> will test it
<jas-hacks_> there were some commits in the wandboard git kernel to support EDID, not sure if you looked at those
eebrah has quit [Ping timeout: 264 seconds]
<abrasive> i vaguely remember looking at somthing that was irrelevant
<jas-hacks_> if boot.src/bootcmd works, then ideally all the stuff in CONFIG_EXTRA_ENV_SETTINGS could be moved there, that how it is done on the A10 platform. So that the booting cmd line can be user changed.
<abrasive> it can already be user changed.
<jas-hacks_> how?
<abrasive> you can saveenv a new bootcommand if you like, i think.
<abrasive> and you can definitely change boot_normal and boot_recovery
<abrasive> but you need something to automatically find the card and run the script, which is what most of that stuff is anyway
<jas-hacks_> I'll try with boot.src
<abrasive> scr*
<abrasive> :)
eebrah has joined #imx6-dongle
<jas-hacks_> actually will try bootcmd 1st
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
cnxsoft has joined #imx6-dongle
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
Noskcaj has quit [Ping timeout: 256 seconds]
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
Noskcaj has joined #imx6-dongle
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
GasVesa has joined #imx6-dongle
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
iamfrankenstein has joined #imx6-dongle
cnxsoft has quit [Quit: cnxsoft]
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
cnxsoft has joined #imx6-dongle
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
cnxsoft has quit [Quit: cnxsoft]
iamfrankenstein has joined #imx6-dongle
hste_ has joined #imx6-dongle
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
<hste_> abrasive: is it bootcmd or ubootcmd? I think it looks for ubootcmd
<hste_> jas-hacks_: Did you get some udev problem on 1204?
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
<abrasive> it's bootcmd, hste_
<jas-hacks_> abrasive: Have hacked uboot to use boot.scr and I can set everything from there.
<abrasive> good good.
<jas-hacks_> Did not realise we can start usb driver through uboot command ;)
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
<jas-hacks_> therefore in boot.scr could potentially detect usb drive and boot from it.
<hste_> abrasive: but when reading sorce it says try_boot=if ext2load mmc ${mmcdev} ${loadaddr} /boot/ubootcmd${bootsuffix}; then source; fi;" \
<jas-hacks_> abrasive: kernel changes resolution, but doesn't like doing it...
<jas-hacks_> fbcvt: Aspect ratio not CVT standard
<jas-hacks_> fbcvt: 1440x990@60: CVT Name - Not a CVT standard - 1.425 Mega Pixel Image
<abrasive> hste_: then i wrote it wrong? :x
<abrasive> jas-hacks_: i thought i documented usb in uboot, oops. didn't default it because it's slo-o-ow
<abrasive> hste_: i did mean ubootcmd then, sorry for the confusion
<abrasive> in which case i misled you, jas, sorry
<hste_> abrasive: no problem :) I used ubootcmd thats why I asked :)
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
<abrasive> my memory is awful.
<jas-hacks_> abrasive: how slow is slow?
<hste_> jas-hacks_: fbset in userspace should work I think
<abrasive> jas-hacks_: a second or three depending on what's plugged in
<abrasive> i like fast boot.
<jas-hacks_> not too bad .. I can wait
<hste_> I have never managed to set the resoulution in ubootcmd. Other settings I set there looks like work
<jas-hacks_> by starting usb in uboot, it resolves the problem of ubuntu taking forever to detect the usb drive.
cnxsoft has joined #imx6-dongle
cnxsoft has quit [Read error: Connection reset by peer]
cnxsoft has joined #imx6-dongle
<abrasive> jas-hacks_: that's really interesting.
<abrasive> hste_: you can only set video in the uboot env
<jas-hacks_> abrasive: I noticed they do the same in the uboot for the nixtrogen6x
<jas-hacks_> in fact they have code to try all mmc and sata for their 'boot.scr'
<abrasive> yeah well
<abrasive> if only we had sata :)
<hste_> :)
<jas-hacks_> I'm going to try usb
<abrasive> do it.
<hste_> jas-hacks_: I get 2048x1152-60 but its not slow and I don't set vmalloc
<hste_> jas-hacks_: On 1204 I get Apr 9 11:29:46 GK802 dbus[1983]: [system] Activating service name='org.freedesktop.ConsoleKit' (using servicehelper) Apr 9 11:29:46 GK802 dbus[1983]: [system] Activated service 'org.freedesktop.ConsoleKit' failed: Failed to execute program /usr/lib/dbus-1.0/dbus-daemon-launch-helper: Success
Noskcaj has quit [Ping timeout: 252 seconds]
<jas-hacks_> hste: There's quite a few of those in the logs ... for now.
<hste_> jas-hack_: I got rid of it now following this http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=659953
<jas-hacks_> hste: 12.04 looking ok?
<jas-hacks_> hste: are u using xubuntu?
<hste_> jas-hack_: can't get into xubuntu. I'll check more on it this evening
<jas-hacks_> hste: so still in unity?
<hste_> jas-hack_: but had glmark2 38 yesterday
<jas-hacks_> hste: great
<hste_> jas-hack_: but had glmark2 38 yesterday with unity
cnxsoft has quit [Quit: cnxsoft]
<hste_> jas-hack_: but on a later reflash of rootfs I had only 13
<jas-hacks_> hste: with cpufreq on?
<hste_> jas-hack_: yes with my kernel latest
<jas-hacks_> when cpu get too HOT gpu switches to 1/64 or something like that.
<hste_> hste_ I have mounted a heatsink onto the cpu
<hste_> hste_: didn't get that message. I have hadd some of them before :)
<jas-hacks_> oh ok. I noticed the resolution also effects the figures as xorg has to worker harder for some resolutions.
<hste_> hste_: I had 2048x1152-60 on X during the test
<hste_> jas-hacks: fixing the dbus permissions looks like fixed network manager
<jas-hacks_> thanks!
<hste_> jas-hacks: and the usbmounting looks smoother after dbus fix
jas-hacks_ has quit [Remote host closed the connection]
cnxsoft has joined #imx6-dongle
datagutt has joined #imx6-dongle
rz2k has joined #imx6-dongle
<GasVesa> hi
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
<hste> GasVesa: hi
iamfrankenstein has joined #imx6-dongle
iamfrankenstein has quit [Excess Flood]
<GasVesa> hste, any chance for me to fix that dbus permissions problem?
<hste> GasVesa: yes: chgrp messagebus /usr/lib/dbus-1.0/dbus-daemon-launch-helper
<GasVesa> sudo?
<hste> GasVesa: yes: chmod +s /usr/lib/dbus-1.0/dbus-daemon-launch-helper
<hste> yes with sudo
<GasVesa> hste, tnx a lot.
<hste> and after that a reboot
<GasVesa> hste, sudo shutdown -r now works for u?
<hste> sudo reboot works for me
<GasVesa> ok
jas-hacks_ has joined #imx6-dongle
<GasVesa> hste, got network! cool!
<GasVesa> usb automoun works too. Time and date works
<hste> GasVesa: does neverball work?
<GasVesa> hste, nope. it freeze
<GasVesa> remote reboot worked.
<drachensun> jas-hacks_ any luck finding that devmem for Android? I've been trying to build one but Android is stubborn as ever
hste_ has quit [Ping timeout: 245 seconds]
<jas-hacks_> drachensun: need source or binary?
<jas-hacks_> drachensun: binary one is harded to just to dump the memory I needed
<drachensun> gotcha
<drachensun> well I have source for one that is similar but I just cant seem to get it to run
<drachensun> how did you build it?
<drachensun> I guess both would help
<GasVesa> bye-bye slowberry :-)
<jas-hacks_> drachensun: arm-linux-gnueabi-gcc -c devmem2.c
<drachensun> thats it?
<drachensun> every time I try that Android wont run "file not found" when run with ./devmem
<drachensun> which seems to be what happens when the binary is in the wrong format for the platform
<jas-hacks_> drachensun: extra bit is the linking ...
<jas-hacks_> drachensun: arm-linux-gnueabi-ld --entry=main --dynamic-linker /system/bin/linker -nostdlib -rpath-link devmem/lib -L devmem/lib -lc devmem2.o -o devmem2
<drachensun> ah ok
<jas-hacks_> drachensun: took me sometime to workout
<jas-hacks_> drachensun: I think I had to copy some libs from andriod to link against
<jas-hacks_> drachensun: actually I copied nearly all the libs from android
<drachensun> lol ok
<drachensun> I've got an CM build sitting here I was using yesterday to try and build it
<drachensun> think it will have the same libraries or should I pull them right from the device?
<jas-hacks_> get the ones from the device
<drachensun> so close
<drachensun> undefined reference to `getpagesize'
<drachensun> Ok, I think I can build it now, can I take a look at your source?
<drachensun> yup, build it working
<drachensun> build is working I mean
<drachensun> seems like it pulls one word at a time
<jas-hacks_> yep, i changed the code to dump sections
<jas-hacks_> like this http://pastebin.com/YirUh81B
<jas-hacks_> drachensun: what you can do is dump sections from android and your new code and diff the 2 hex outputs
<drachensun> ah perfect
<jas-hacks_> drachensun: but you can only do that once the kernel is booting
<drachensun> yeah
<drachensun> well I can boot the kernel with the hdmi system type
<drachensun> so I might just switch making that my base
<drachensun> and move pieces over a little at a time
<drachensun> that would seem to make sense
<drachensun> if richtech designed both boards, they would probably mostly use the same parts
<jas-hacks_> drachensun: they do share same bits
aesok has joined #imx6-dongle
<GasVesa> hste, is i try to logout from unity i've got a blank screen
<GasVesa> *if
<hste> GasVesa: I have the same problem
cnxsoft has quit [Remote host closed the connection]
<GasVesa> hste, and this is weird: if i try to boot it connected to a monitor where another source is already connected it fail to boot at some point (blank screen and no ssh))
aesok has quit [Remote host closed the connection]
<GasVesa> dunno why but today my glmark score is only 23
<hste> GasVesa: copy http://stende.no-ip.info/files/ubootcmd to /boot on your sdcard. it reserve 128M for fb. then you'll be able to log out and run xubuntu
<hste> GasVesa: you have to reboot after you have done that
<GasVesa> hste, may i do it from linaro?
<hste> yes
<hste> GasVesa: from terminal: wget http://stende.no-ip.info/files/ubootcmd;sudo cp ubootcmd /boot
<GasVesa> hste, good! booted to login screen, login in unity and able to logout and relogin in xubuntu gj!
<hste> ...but it steal memory for using on applications
<GasVesa> oh... look at it like a feature... MS docet!
<hste> in xubuntu I got glmark2-es score 37
<hste> does neverball freeze now?
<GasVesa> running glmark
<jas-hacks_> finally got my uboot to pickup /boot/uImage from usb drive
<hste> in xubuntu I got glmark2 score 28
<GasVesa> glmark score 37 with the full-trottled kernel
<GasVesa> wait, mine was glmark-es
<hste> jas-hacks_: :) Now we just need a easy way for users to choose resolution
<GasVesa> jas-hacks_, it means that we can put a boot-loader in the card that points to a / on an usb device?
<jas-hacks_> hste: I changed my uboot to use boot.scr so you can create with the resolution.
<hste> jas-hacks_: Just need to make some boot.scr files with diff solutions then
<GasVesa> hste, neverball still freezin :-(
<hste> GasVesa: doesn't freeze for me. Try freqscaling kernel
<GasVesa> hste, in the same way of that ubootcmd file?
<hste> GasVesa: yes boot.scr will be read at boot
<GasVesa> hste, i take the freq scalin file from the blog page and i copy into /boot?
<hste> GasVesa: it depends on what uboot u got. I think jas-hack_ have a new u-boot.imx soon that you copy the kernel to /boot with name uImage
<GasVesa> hste, ok
<hste> jas-hacks_: how is the syntax for setting resolution in boot.scr?
<jas-hacks_> hste: same as uboot video=...
<hste> so just compile it with video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24
<jas-hacks_> hste: yep
<GasVesa> hste, now neverball doesn't freeze anymore it opens and close the window immediately
<hste> GasVesa: if you start it from terminal do you get some errors?
<GasVesa> hste, libgl error reverting to slow indirect rendering
<GasVesa> hste, need all?
<hste> jas-hacks_: I tried boot.scr but it didnæt change resolution http://stende.no-ip.info/files/boot.scr
<jas-hacks_> hste: I've hacked my uboot to use the default boots.scr and not /boot/bootcmd
<hste> jas-hacks_: but will not uboot look for boot.scr by default?
<jas-hacks_> hste: should do ..
<hste> GasVesa: what does ls-la /dev/dri give u?
<hste> ls -la
<hste> try: sudo chmod 666 /dev/dri/card0
<GasVesa> hste, neverball started
<GasVesa> yayy
<GasVesa> but failed...
<hste> GasVesa: did u get some error in terminal?
<GasVesa> hste, the game starts, i screw something trying to change resolution
<GasVesa> in the default mode works (cannot test audio)
<GasVesa> hste, do u think i'll be able to use an usb-eth adapter?
<hste> GasVesa: I use one.. it dep on if its compiled into the kernel
<GasVesa> k
<hste> mine use dm9601
<GasVesa> hste, i'm waiting for one buyed on ebay...
<jas-hacks_> uboot calling usb stick -> /boot/uImage :)
<jas-hacks_> Hit any key to stop autoboot: 0
<jas-hacks_> (Re)start USB...
<jas-hacks_> USB0: USB EHCI 1.00
<jas-hacks_> scanning bus 0 for devices... 5 USB Device(s) found
<jas-hacks_> scanning usb for storage devices... 1 Storage Device(s) found
<jas-hacks_> 380 bytes read
<jas-hacks_> ## Executing script at 10008000
<jas-hacks_> USB device 0:
<jas-hacks_> Device 0: Vendor: Verbatim Rev: 5.00 Prod: STORE N GO
<jas-hacks_> Type: Removable Hard Disk
<jas-hacks_> Capacity: 7640.0 MB = 7.4 GB (15646720 x 512)
<jas-hacks_> ... is now current device
<jas-hacks_> 3642376 bytes read
<jas-hacks_> ## Booting kernel from Legacy Image at 10800000 ...
<jas-hacks_> Image Name: Linux-3.0.35-02701-g6ea2512
<jas-hacks_> Image Type: ARM Linux Kernel Image (uncompressed)
<jas-hacks_> Data Size: 3642312 Bytes = 3.5 MiB
<jas-hacks_> Load Address: 10008000
<jas-hacks_> Entry Point: 10008000
<jas-hacks_> Verifying Checksum ... OK
<jas-hacks_> Loading Kernel Image ... OK
<hste> jas-hacks_: do u have a fast usb dev?
<jas-hacks_> hste: no just a normally usb stick
<jas-hacks_> don't have to fiddle with the sd card any more.
<hste> jas-hacks_: :) same way abrasive do :)
<jas-hacks_> all the other stuff is configured in /boot.scr on the usb stick
<jas-hacks_> hste: can you play video in full screen with your resolution?
<hste> jas-hacks_: yes it scale out
<jas-hacks_> no stuttering
<hste> jas-hacks_: not that I can see
<hste> jas-hacks_: I have fbmem to 128M
<hste> jas-hacks_: but on't know about sound....
<hste> +d
GasVesa has quit [Remote host closed the connection]
jas-hacks_ has left #imx6-dongle [#imx6-dongle]
jas-hacks has joined #imx6-dongle
<hste> jas-hacks_: irc from dongle? :)
<jas-hacks> yep
iamfrankenstein has joined #imx6-dongle
<hste> jas-hacks_: I could connect wifi without antenna :)
<hste> jas-hacks_: not so much diff in signalstrenght from when I had antenna on the dongle
<jas-hacks> hste: is router near?
<hste> jas-hacks_: about one meter
<hste> jas-hacks_: I guess the antenna isn't the best only one wire....
<hste> jas-hacks_: but I guess better than the bt one
<jas-hacks> slightly better
<hste> jas-hacks_: have u tried setting resolutions in boot.scr?
<jas-hacks> yes it works, I know what is wrong with your uboot config.
<hste> and thats what? :)
<jas-hacks> you need to set the env variable 'bootargs' with the values otherwise they don't get passed to the kernel
<jas-hacks> eg: setenv bootargs console=${console} root=${root}
<jas-hacks> you had set the bootarg values in the kernel config file.
<hste> ok
ajayr has quit [Ping timeout: 245 seconds]
<hste> so like: setenv bootargs video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24
<jas-hacks> yep
ajayr has joined #imx6-dongle
<jas-hacks> my usb boot.scr is:
<jas-hacks> setenv console 'ttymxc3,115200'
<jas-hacks> setenv root '/dev/sda1 rootwait'
<jas-hacks> setenv rootfstype 'ext4'
<jas-hacks> setenv kernel 'uImage'
<jas-hacks> setenv extra ''
<jas-hacks> setenv boot_normal 'setenv bootargs console=${console} root=${root} rootfstype=${rootfstype} video=${video} ${extra}; usb dev 0; ext2load usb 0:1 0x10800000 /boot/uImage; bootm'
<hste> jas-hacks: where do u set the video variable?
datagutt has quit [Quit: kthxbai]
<jas-hacks> I left it out because I am testing at full resolution
<hste> :)
<hste> really getting closer to having a good image to present :)
<jas-hacks> that boot.scr needs a modded uboot I'll upload tomorrow
<hste> do you know how to calculate how much fbmem to reserve
<hste> so the latest from git doesn't read boot.scr the right way?
<jas-hacks> latest git code is searching for /boot/bootcmd, you could put the values in there and try
<jas-hacks> otavio: did you get your GK802?
<hste> jas-hacks: I have tried and video doesn't get passed to kernel there
<jas-hacks> did you 'mkimage' the file?
<hste> jas-hacks: yes and the other values get used like fbmem
<hste> jas-hacks: abrasive said sth about it that the video needed to be set another place
<hste> setenv bootargs console=ttymxc3,115200 root=/dev/mmcblk0p1
<hste> setenv bootargs rootfstype=ext4 fixrtc
<hste> setenv bootargs video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24
<hste> setenv fbcon "fbcon=28M";
<hste> setenv bootargs mxcfb1:off mxcfb2:off fbmem=28M
<hste> I raized the mem to 128M then I was able to go into xubuntu
<jas-hacks> I had this:
<jas-hacks> setenv bootargs ${bootargs} console=ttymxc3,115200
<jas-hacks> setenv bootargs ${bootargs} root=/dev/mmcblk0p1 rootwait
<jas-hacks> setenv bootargs ${bootargs} rootfstype=ext4
<jas-hacks> setenv bootargs ${bootargs} video=mxcfb0:dev=hdmi,1280x720M@60
<hste> I see I overwrote it, only last line set
<hste> :)
<otavio> jas-hacks: no; it passed customs
<jas-hacks> otavio: are you in brazil?
<jas-hacks> otavio: the vivante driver I built from yocto run slower than the built from tlib
jas-hacks has quit [Remote host closed the connection]
jas-hacks has joined #imx6-dongle
GasVesa has joined #imx6-dongle
jas-hacks has quit [Read error: Connection reset by peer]
jas-hacks_ has joined #imx6-dongle
jas-hacks_ has quit [Remote host closed the connection]
Noskcaj has joined #imx6-dongle
Noskcaj has quit [Changing host]
Noskcaj has joined #imx6-dongle
iamfrankenstein has quit [Read error: Connection reset by peer]
Noskcaj has quit [Ping timeout: 246 seconds]
rz2k has quit []
Noskcaj has joined #imx6-dongle
Noskcaj has quit [Ping timeout: 246 seconds]
Noskcaj has joined #imx6-dongle
Noskcaj has quit [Ping timeout: 245 seconds]
Noskcaj has joined #imx6-dongle
Noskcaj has quit [Ping timeout: 264 seconds]