On 19.11.2012, at 11:45, Ciaran Farrell wrote:
On 19/11/12 11:32, Alexander Graf wrote:
On 16.11.2012, at 15:56, Ciaran Farrell wrote:
home:babelworx:branches:openSUSE:12.2:ARM:Contrib:Cubox/JeOS-cubox -> openSUSE:12.2:ARM:Contrib:Cubox/JeOS-cubox
https://build.opensuse.org/request/diff/141568
Description: Get CuBox working w/o manual uboot intervention
@@ -3,19 +3,39 @@ set -x
file=boot/boot.script +echo 'resetenv' >> $file +echo 'setenv kerneladdr 0x2000000' >> $file +echo 'setenv ramdiskaddr 0x3000000' >> $file +echo 'ext2load mmc 0:1 0x2000000 boot/linux.vmx' >> $file +echo 'ext2load mmc 0:1 0x3000000 boot/initrd.uboot' >> $file +echo -n 'setenv bootargs "' >> $file +echo 'console=ttyS0,115200 root=/dev/mmcblk0p2"' >> $file +echo 'bootm 0x2000000 0x3000000' >> $file +echo 'boot' >> $file Mind to explain why exactly you need this? Is $arcNumber not set up correctly on your local NVRAM?
Also, this still breaks after your first reboot, because the boot script gets regenerated on first boot.
Furthermore, this change only gets 12.2 working for you, but still fails on Factory. We should certainly find out why it doesn't work for you and get a generic solution up and rolling, so that Factory works too :). Sure, but I have absolutely no idea how to do that :-) The problem I was having with the original version of the bootscript was this: http://pastebin.com/hHxiZJ5C
It would boot as far as "Starting kernel ... Uncompressing Linux... done, booting the kernel." and then hang indefinitely. I blamed the errors: Loading file "/boot.scr" from mmc device 0:1 (mmcda1) 641 bytes read ## Executing script at 02000000 ## Error: "kerneladdr" not defined ## Error: "ramdiskaddr" not defined
These are actually ok messages. The script checks for existence of these variables and defines them differently if they don't exist. The CuBox specific bit is where it checks for the $arcNumber and overrides that whole logic. The only major difference I can see in your patch is that instead of running into that code path, you just replace all variable use with the same addresses the variables would expand to if you get into the $arcnumber==3905 case. Could you please check what the value of $arcNumber is for you? Alex
And tried to rectify this by hardcoding the kerneladdr and ramdiskaddr in boot.scr.
For whatever reason (maybe just luck), it booted and got me into yast2-firstboot. I think that I rebooted it since then (though I could be wrong) - I'll reboot ASAP to see what happends. mmeister has a CuBox on his desk - I'll head down and see if it works for him after a reboot...
Ciaran
Alex
-echo 'printenv kerneladdr || setenv kerneladdr ${kernel_addr_r}' >> $file -echo 'printenv ramdiskaddr|| setenv ramdiskaddr ${ramdisk_addr_r}' >> $file +#echo 'printenv kerneladdr || setenv kerneladdr ${kernel_addr_r}' >> $file +#echo 'printenv ramdiskaddr|| setenv ramdiskaddr ${ramdisk_addr_r}' >> $file # CuBox Hack -echo 'if itest 1$arcNumber == 13905; then' >> $file -echo ' setenv kerneladdr 0x2000000' >> $file -echo ' setenv ramdiskaddr 0x3000000' >> $file -echo 'fi' >> $file -echo -n 'setenv bootcmd "' >> $file -echo -n 'ext2load mmc 0:1 ${kerneladdr} boot/linux.vmx; ' >> $file -echo -n 'ext2load mmc 0:1 ${ramdiskaddr} boot/initrd.uboot; ' >> $file -echo 'bootm ${kerneladdr} ${ramdiskaddr}";' >> $file -echo 'boot' >> $file +#echo 'if itest 1$arcNumber == 13905; then' >> $file +#echo ' setenv kerneladdr 0x2000000' >> $file +#echo ' setenv ramdiskaddr 0x3000000' >> $file +#echo 'fi' >> $file +#echo -n 'setenv bootcmd "' >> $file +#echo -n 'ext2load mmc 0:1 ${kerneladdr} boot/linux.vmx; ' >> $file +#echo -n 'ext2load mmc 0:1 ${ramdiskaddr} boot/initrd.uboot; ' >> $file +#echo 'bootm ${kerneladdr} ${ramdiskaddr}";' >> $file +#echo 'boot' >> $file + + +#echo '======== Setting bootargs ========' >> $file +#echo -n 'setenv bootargs "' >> $file +#echo -n 'console=ttyS0,115200n8 vmalloc=384M root=/dev/mmcblk0p2 ' >> $file +#echo 'rootdelay=2 --no-log --verbose"' >> $file +#echo '======== Loading kernel ========' >> $file +#echo 'ext2load mmc 0:1 0x00200000 /boot/uImage' >> $file +#echo '======== Booting kernel ========' >> $file +#echo 'bootm' >> $file +
#========================================== # Create machine readable uboot format
To REVIEW against the previous version: osc request show --diff 141568
To ACCEPT the request: osc request accept 141568 --message="reviewed ok."
To DECLINE the request: osc request decline 141568 --message="declined for reason xyz (see ... for background / policy / ...)."
To REVOKE the request: osc request revoke 141568 --message="retracted because ..., sorry / thx / see better version ..."
-- Hermes messaging (http://hermes.opensuse.org) openSUSE Build Service (https://build.opensuse.org/) Collaboration: http://en.opensuse.org/Build_Service/Collaboration
-- Ciaran Farrell, Attorney at Law SUSE Linux Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, DE GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
-- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org