[U-Boot] Upstream uboot and Arndale 5250 support

Hi,
i've been trying to update the u-boot on my board (sd booting), from the Linaro one (2012.10) to a v2014.X, but so far had no luck:
make arndale_config export CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- make
...
dd if=arndale-bl1.bin of=/dev/sdc bs=512 skip=1 dd if=arndale-spl.bin of=/dev/sdc bs=512 skip=17 dd if=./u-boot-dtb.bin of=/dev/sdc bs=512 skip=49
...
u-boot 3.10rc3 (same happens with v2014.07 or 2014.04):
U-Boot 2014.10-rc3 (Oct 07 2014 - 13:26:48) for ARNDALE
CPU: Exynos5250@1000MHz
Board: Arndale I2C: i2c_init: failed to init bus 0 for speed = 100000 ready DRAM: 2 GiB trace: copying 00086db4 bytes of early data from 50000000 to beff0000 trace: enabled WARNING: Caches not enabled MMC: EXYNOS DWMMC: 0, EXYNOS DWMMC: 1 dwmci_send_cmd: DATA ERROR! i2c_init: failed to init bus 0 for speed = 100000 In: serial Out: serial Err: serial Net: Net Initialization Skipped No ethernet found. Hit any key to stop autoboot: 0 ARNDALE # printenv baudrate=115200 bootargs=console=ttySAC2,115200n8 root=/dev/mmcblk1p1 rw rootwait debug earlyprintk bootcmd=run bootcmd_ubuntu bootcmd_ubuntu=run loadk; run loadf; run loadr; bootm ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r} bootdelay=3 fdt_addr_r=0x41000000 filesize=5b9902 kernel_addr_r=0x40007000 loadf=ext2load mmc 1:1 ${fdt_addr_r} /boot/exynos5250-arndale.dtb loadk=ext2load mmc 1:1 ${kernel_addr_r} /boot/uImage loadr=ext2load mmc 1:1 ${ramdisk_addr_r} /boot/uInitrd ramdisk_addr_r=0x42000000 stderr=serial stdin=serial stdout=serial
Environment size: 589/16380 bytes ARNDALE # run loadk 6002946 bytes read in 1117 ms (5.1 MiB/s) ARNDALE # bootm ${kernel_addr_r} ## Booting kernel from Legacy Image at 40007000 ... Image Name: kernel 3.16.0-20-generic Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 6002882 Bytes = 5.7 MiB Load Address: 40008000 Entry Point: 40008000 Verifying Checksum ... OK Loading Kernel Image ... OK
Starting kernel ...(fake run for tracing)
Starting kernel ...
[stuck here]
here for a more complete log:
http://pastebin.ubuntu.com/8514108/plain/
Any idea what's going wrong? Did you try this board lately?
It's a kernel with the DTB concatenated (and it works fine with Linaro 2012 uboot), but the same happens if i explicitely pass the dtb:
U-Boot 2014.07 (Sep 30 2014 - 15:26:03) for ARNDALE
CPU: Exynos5250@1000MHz
Board: Arndale I2C: i2c_init: failed to init bus 0 for speed = 100000 ready DRAM: 2 GiB trace: copying 00085818 bytes of early data from 50000000 to beff0000 trace: enabled WARNING: Caches not enabled MMC: EXYNOS DWMMC: 0, EXYNOS DWMMC: 1 i2c_init: failed to init bus 0 for speed = 100000 In: serial Out: serial Err: serial Net: Net Initialization Skipped No ethernet found. Hit any key to stop autoboot: 0 ARNDALE # printenv baudrate=115200 bootargs=console=ttySAC2,115200n8 root=/dev/mmcblk1p1 rw rootwait debug earlyprintk bootcmd=run bootcmd_ubuntu bootcmd_ubuntu=run loadk; run loadf; run loadr; bootm ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r} bootdelay=3 fdt_addr_r=0x41000000 filesize=5b9902 kernel_addr_r=0x40007000 loadf=ext2load mmc 1:1 ${fdt_addr_r} /boot/exynos5250-arndale.dtb loadk=ext2load mmc 1:1 ${kernel_addr_r} /boot/uImage loadr=ext2load mmc 1:1 ${ramdisk_addr_r} /boot/uInitrd ramdisk_addr_r=0x42000000 stderr=serial stdin=serial stdout=serial
Environment size: 589/16380 bytes ARNDALE # run loadk 6002946 bytes read in 1114 ms (5.1 MiB/s) ARNDALE # run loadf 35450 bytes read in 34 ms (1017.6 KiB/s) ARNDALE # bootm ${kernel_addr_r} - ${fdt_addr_r} ## Booting kernel from Legacy Image at 40007000 ... Image Name: kernel 3.16.0-20-generic Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 6002882 Bytes = 5.7 MiB Load Address: 40008000 Entry Point: 40008000 Verifying Checksum ... OK ## Flattened Device Tree blob at 41000000 Booting using the fdt blob at 0x41000000 Loading Kernel Image ... OK Loading Device Tree to 4fff4000, end 4ffffa79 ... OK
Starting kernel ...(fake run for tracing)
Starting kernel ...
[stuck again]
(please cc: me as i'm off list)

Hi,
Le 07/10/2014 14:58, Paolo Pisati a écrit :
Hi,
i've been trying to update the u-boot on my board (sd booting), from the Linaro one (2012.10) to a v2014.X, but so far had no luck:
make arndale_config export CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- make
...
dd if=arndale-bl1.bin of=/dev/sdc bs=512 skip=1 dd if=arndale-spl.bin of=/dev/sdc bs=512 skip=17 dd if=./u-boot-dtb.bin of=/dev/sdc bs=512 skip=49
...
u-boot 3.10rc3 (same happens with v2014.07 or 2014.04):
U-Boot 2014.10-rc3 (Oct 07 2014 - 13:26:48) for ARNDALE
CPU: Exynos5250@1000MHz
Board: Arndale I2C: i2c_init: failed to init bus 0 for speed = 100000 ready DRAM: 2 GiB trace: copying 00086db4 bytes of early data from 50000000 to beff0000 trace: enabled WARNING: Caches not enabled MMC: EXYNOS DWMMC: 0, EXYNOS DWMMC: 1 dwmci_send_cmd: DATA ERROR! i2c_init: failed to init bus 0 for speed = 100000 In: serial Out: serial Err: serial Net: Net Initialization Skipped No ethernet found. Hit any key to stop autoboot: 0 ARNDALE # printenv baudrate=115200 bootargs=console=ttySAC2,115200n8 root=/dev/mmcblk1p1 rw rootwait debug earlyprintk bootcmd=run bootcmd_ubuntu bootcmd_ubuntu=run loadk; run loadf; run loadr; bootm ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r} bootdelay=3 fdt_addr_r=0x41000000 filesize=5b9902 kernel_addr_r=0x40007000 loadf=ext2load mmc 1:1 ${fdt_addr_r} /boot/exynos5250-arndale.dtb loadk=ext2load mmc 1:1 ${kernel_addr_r} /boot/uImage loadr=ext2load mmc 1:1 ${ramdisk_addr_r} /boot/uInitrd ramdisk_addr_r=0x42000000 stderr=serial stdin=serial stdout=serial
Environment size: 589/16380 bytes ARNDALE # run loadk 6002946 bytes read in 1117 ms (5.1 MiB/s) ARNDALE # bootm ${kernel_addr_r} ## Booting kernel from Legacy Image at 40007000 ... Image Name: kernel 3.16.0-20-generic Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 6002882 Bytes = 5.7 MiB Load Address: 40008000 Entry Point: 40008000 Verifying Checksum ... OK Loading Kernel Image ... OK
Starting kernel ...(fake run for tracing)
Starting kernel ...
[stuck here]
I faced this problem some times ago. Try to modify kernel, initrd and fdt addresses.
Guillaume

those are the addresses suggested by u-boot and yes, i already tried moving stuff around but it didn't fix it: what's the working config with your board? u-boot version?
On Tue, Oct 7, 2014 at 4:34 PM, Guillaume Gardet guillaume.gardet@free.fr wrote:
Hi,
Le 07/10/2014 14:58, Paolo Pisati a écrit :
Hi,
i've been trying to update the u-boot on my board (sd booting), from the Linaro one (2012.10) to a v2014.X, but so far had no luck:
make arndale_config export CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- make
...
dd if=arndale-bl1.bin of=/dev/sdc bs=512 skip=1 dd if=arndale-spl.bin of=/dev/sdc bs=512 skip=17 dd if=./u-boot-dtb.bin of=/dev/sdc bs=512 skip=49
...
u-boot 3.10rc3 (same happens with v2014.07 or 2014.04):
U-Boot 2014.10-rc3 (Oct 07 2014 - 13:26:48) for ARNDALE
CPU: Exynos5250@1000MHz
Board: Arndale I2C: i2c_init: failed to init bus 0 for speed = 100000 ready DRAM: 2 GiB trace: copying 00086db4 bytes of early data from 50000000 to beff0000 trace: enabled WARNING: Caches not enabled MMC: EXYNOS DWMMC: 0, EXYNOS DWMMC: 1 dwmci_send_cmd: DATA ERROR! i2c_init: failed to init bus 0 for speed = 100000 In: serial Out: serial Err: serial Net: Net Initialization Skipped No ethernet found. Hit any key to stop autoboot: 0 ARNDALE # printenv baudrate=115200 bootargs=console=ttySAC2,115200n8 root=/dev/mmcblk1p1 rw rootwait debug earlyprintk bootcmd=run bootcmd_ubuntu bootcmd_ubuntu=run loadk; run loadf; run loadr; bootm ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r} bootdelay=3 fdt_addr_r=0x41000000 filesize=5b9902 kernel_addr_r=0x40007000 loadf=ext2load mmc 1:1 ${fdt_addr_r} /boot/exynos5250-arndale.dtb loadk=ext2load mmc 1:1 ${kernel_addr_r} /boot/uImage loadr=ext2load mmc 1:1 ${ramdisk_addr_r} /boot/uInitrd ramdisk_addr_r=0x42000000 stderr=serial stdin=serial stdout=serial
Environment size: 589/16380 bytes ARNDALE # run loadk 6002946 bytes read in 1117 ms (5.1 MiB/s) ARNDALE # bootm ${kernel_addr_r} ## Booting kernel from Legacy Image at 40007000 ... Image Name: kernel 3.16.0-20-generic Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 6002882 Bytes = 5.7 MiB Load Address: 40008000 Entry Point: 40008000 Verifying Checksum ... OK Loading Kernel Image ... OK
Starting kernel ...(fake run for tracing)
Starting kernel ...
[stuck here]
I faced this problem some times ago. Try to modify kernel, initrd and fdt addresses.
Guillaume

I used the following values with 2014.10-rc2: kerneladdr=0x44000000 ramdiskaddr=0x45000000 fdtaddr=0x4c000000
But I used a zImage. If you use a uImage, you need to modify the kernel load addr.
Guillaume
Le 07/10/2014 17:02, Paolo Pisati a écrit :
those are the addresses suggested by u-boot and yes, i already tried moving stuff around but it didn't fix it: what's the working config with your board? u-boot version?
On Tue, Oct 7, 2014 at 4:34 PM, Guillaume Gardet guillaume.gardet@free.fr wrote:
Hi,
Le 07/10/2014 14:58, Paolo Pisati a écrit :
Hi,
i've been trying to update the u-boot on my board (sd booting), from the Linaro one (2012.10) to a v2014.X, but so far had no luck:
make arndale_config export CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- make
...
dd if=arndale-bl1.bin of=/dev/sdc bs=512 skip=1 dd if=arndale-spl.bin of=/dev/sdc bs=512 skip=17 dd if=./u-boot-dtb.bin of=/dev/sdc bs=512 skip=49
...
u-boot 3.10rc3 (same happens with v2014.07 or 2014.04):
U-Boot 2014.10-rc3 (Oct 07 2014 - 13:26:48) for ARNDALE
CPU: Exynos5250@1000MHz
Board: Arndale I2C: i2c_init: failed to init bus 0 for speed = 100000 ready DRAM: 2 GiB trace: copying 00086db4 bytes of early data from 50000000 to beff0000 trace: enabled WARNING: Caches not enabled MMC: EXYNOS DWMMC: 0, EXYNOS DWMMC: 1 dwmci_send_cmd: DATA ERROR! i2c_init: failed to init bus 0 for speed = 100000 In: serial Out: serial Err: serial Net: Net Initialization Skipped No ethernet found. Hit any key to stop autoboot: 0 ARNDALE # printenv baudrate=115200 bootargs=console=ttySAC2,115200n8 root=/dev/mmcblk1p1 rw rootwait debug earlyprintk bootcmd=run bootcmd_ubuntu bootcmd_ubuntu=run loadk; run loadf; run loadr; bootm ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r} bootdelay=3 fdt_addr_r=0x41000000 filesize=5b9902 kernel_addr_r=0x40007000 loadf=ext2load mmc 1:1 ${fdt_addr_r} /boot/exynos5250-arndale.dtb loadk=ext2load mmc 1:1 ${kernel_addr_r} /boot/uImage loadr=ext2load mmc 1:1 ${ramdisk_addr_r} /boot/uInitrd ramdisk_addr_r=0x42000000 stderr=serial stdin=serial stdout=serial
Environment size: 589/16380 bytes ARNDALE # run loadk 6002946 bytes read in 1117 ms (5.1 MiB/s) ARNDALE # bootm ${kernel_addr_r} ## Booting kernel from Legacy Image at 40007000 ... Image Name: kernel 3.16.0-20-generic Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 6002882 Bytes = 5.7 MiB Load Address: 40008000 Entry Point: 40008000 Verifying Checksum ... OK Loading Kernel Image ... OK
Starting kernel ...(fake run for tracing)
Starting kernel ...
[stuck here]
I faced this problem some times ago. Try to modify kernel, initrd and fdt addresses.
Guillaume

that's weird, because i don't have bootz:
U-Boot 2014.10-rc3 (Oct 08 2014 - 11:34:33) for ARNDALE
CPU: Exynos5250@1000MHz
Board: Arndale I2C: i2c_init: failed to init bus 0 for speed = 100000 ready DRAM: 2 GiB trace: copying 00086db4 bytes of early data from 50000000 to beff0000 trace: enabled WARNING: Caches not enabled MMC: EXYNOS DWMMC: 0, EXYNOS DWMMC: 1 dwmci_send_cmd: DATA ERROR! i2c_init: failed to init bus 0 for speed = 100000 In: serial Out: serial Err: serial Net: Net Initialization Skipped No ethernet found. Hit any key to stop autoboot: 0 ARNDALE # help bootz Unknown command 'bootz' - try 'help' without arguments for list of all known commands
ARNDALE #
are you using a patched u-boot?
i'm using the default arndale_defconfig.
anyhow, can i have your full working config? i'm starting to feel i'm chasing ghosts here.
On Wed, Oct 8, 2014 at 10:00 AM, Guillaume Gardet guillaume.gardet@free.fr wrote:
I used the following values with 2014.10-rc2: kerneladdr=0x44000000 ramdiskaddr=0x45000000 fdtaddr=0x4c000000
But I used a zImage. If you use a uImage, you need to modify the kernel load addr.
Guillaume
Le 07/10/2014 17:02, Paolo Pisati a écrit :
those are the addresses suggested by u-boot and yes, i already tried moving stuff around but it didn't fix it: what's the working config with your board? u-boot version?
On Tue, Oct 7, 2014 at 4:34 PM, Guillaume Gardet guillaume.gardet@free.fr wrote:
Hi,
Le 07/10/2014 14:58, Paolo Pisati a écrit :
Hi,
i've been trying to update the u-boot on my board (sd booting), from the Linaro one (2012.10) to a v2014.X, but so far had no luck:
make arndale_config export CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- make
...
dd if=arndale-bl1.bin of=/dev/sdc bs=512 skip=1 dd if=arndale-spl.bin of=/dev/sdc bs=512 skip=17 dd if=./u-boot-dtb.bin of=/dev/sdc bs=512 skip=49
...
u-boot 3.10rc3 (same happens with v2014.07 or 2014.04):
U-Boot 2014.10-rc3 (Oct 07 2014 - 13:26:48) for ARNDALE
CPU: Exynos5250@1000MHz
Board: Arndale I2C: i2c_init: failed to init bus 0 for speed = 100000 ready DRAM: 2 GiB trace: copying 00086db4 bytes of early data from 50000000 to beff0000 trace: enabled WARNING: Caches not enabled MMC: EXYNOS DWMMC: 0, EXYNOS DWMMC: 1 dwmci_send_cmd: DATA ERROR! i2c_init: failed to init bus 0 for speed = 100000 In: serial Out: serial Err: serial Net: Net Initialization Skipped No ethernet found. Hit any key to stop autoboot: 0 ARNDALE # printenv baudrate=115200 bootargs=console=ttySAC2,115200n8 root=/dev/mmcblk1p1 rw rootwait debug earlyprintk bootcmd=run bootcmd_ubuntu bootcmd_ubuntu=run loadk; run loadf; run loadr; bootm ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r} bootdelay=3 fdt_addr_r=0x41000000 filesize=5b9902 kernel_addr_r=0x40007000 loadf=ext2load mmc 1:1 ${fdt_addr_r} /boot/exynos5250-arndale.dtb loadk=ext2load mmc 1:1 ${kernel_addr_r} /boot/uImage loadr=ext2load mmc 1:1 ${ramdisk_addr_r} /boot/uInitrd ramdisk_addr_r=0x42000000 stderr=serial stdin=serial stdout=serial
Environment size: 589/16380 bytes ARNDALE # run loadk 6002946 bytes read in 1117 ms (5.1 MiB/s) ARNDALE # bootm ${kernel_addr_r} ## Booting kernel from Legacy Image at 40007000 ... Image Name: kernel 3.16.0-20-generic Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 6002882 Bytes = 5.7 MiB Load Address: 40008000 Entry Point: 40008000 Verifying Checksum ... OK Loading Kernel Image ... OK
Starting kernel ...(fake run for tracing)
Starting kernel ...
[stuck here]
I faced this problem some times ago. Try to modify kernel, initrd and fdt addresses.
Guillaume

Le 08/10/2014 12:16, Paolo Pisati a écrit :
that's weird, because i don't have bootz:
are you using a patched u-boot?
i'm using the default arndale_defconfig.
anyhow, can i have your full working config? i'm starting to feel i'm chasing ghosts here.
I used this patch for -rc2 (which will not apply on -rc3 because of changes on arndale config between -rc2 and -rc3): https://patchwork.ozlabs.org/patch/391247/raw/ with arndale_defconfig.
Then, I used a bootscript which defined and used the values I gave you: kerneladdr=0x44000000 ramdiskaddr=0x45000000 fdtaddr=0x4c000000
But you can define those values manually, of courses.
Hope it will help you.
Guillaume
participants (2)
-
Guillaume Gardet
-
Paolo Pisati