[opensuse-arm] Issues booting OMAP5 board
Hi, I'm currently trying to bring up a uEVM board, and have what I believe all the correct components for it [0]. Regardless of having a dtb package and using kernel 3.14-rc2 it still fails to boot, with u-boot complaining. Below is my boot log, does anyone have ideas/tips to resolve this? U-Boot SPL 2014.01 (Feb 25 2014 - 21:55:07) OMAP5432 ES2.0 U-Boot 2014.01 (Feb 25 2014 - 21:55:07) CPU : OMAP5432 ES2.0 Board: OMAP5432 uEVM I2C: ready DRAM: 2 GiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 Using default environment SATA link 0 timeout. AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst scanning bus for devices... Found 0 device(s). Net: No ethernet found. Hit any key to stop autoboot: 0 mmc0 is current device SD/MMC found on device 0 ** Unrecognized filesystem type ** 4713776 bytes read in 271 ms (16.6 MiB/s) ** File not found /boot/omap5-uevm.dtb ** Booting from mmc0 ... Kernel image @ 0x80200000 [ 0x000000 - 0x47ed30 ] ERROR: Did not find a cmdline Flattened Device Tree Could not find a valid device tree mmc1(part 0) is current device SD/MMC found on device 1 ** Unrecognized filesystem type ** ** No partition table - mmc 1 ** I'm hoping to be able to demo this at Linaro Connect next week with Xen running ontop. Thanks, Andy -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
On 27-02-2014 09:34, Andrew Wafaa wrote:
Hi,
I'm currently trying to bring up a uEVM board, and have what I believe all the correct components for it [0]. Regardless of having a dtb package and using kernel 3.14-rc2 it still fails to boot, with u-boot complaining. Below is my boot log, does anyone have ideas/tips to resolve this?
U-Boot SPL 2014.01 (Feb 25 2014 - 21:55:07) OMAP5432 ES2.0
U-Boot 2014.01 (Feb 25 2014 - 21:55:07)
CPU : OMAP5432 ES2.0 Board: OMAP5432 uEVM I2C: ready DRAM: 2 GiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 Using default environment
SATA link 0 timeout. AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst scanning bus for devices... Found 0 device(s). Net: No ethernet found. Hit any key to stop autoboot: 0 mmc0 is current device SD/MMC found on device 0 ** Unrecognized filesystem type ** 4713776 bytes read in 271 ms (16.6 MiB/s) ** File not found /boot/omap5-uevm.dtb ** Booting from mmc0 ... Kernel image @ 0x80200000 [ 0x000000 - 0x47ed30 ] ERROR: Did not find a cmdline Flattened Device Tree Could not find a valid device tree mmc1(part 0) is current device SD/MMC found on device 1 ** Unrecognized filesystem type ** ** No partition table - mmc 1 **
I'm hoping to be able to demo this at Linaro Connect next week with Xen running ontop.
Thanks, Andy
Sorry I forgot the pointer to the repo with the modified packages! https://build.opensuse.org/project/show/home:FunkyPenguin:ARM:OMAP5 -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Hi, Le 27/02/2014 10:50, Andrew Wafaa a écrit :
On 27-02-2014 09:34, Andrew Wafaa wrote:
Hi,
I'm currently trying to bring up a uEVM board, and have what I believe all the correct components for it [0]. Regardless of having a dtb package and using kernel 3.14-rc2 it still fails to boot, with u-boot complaining. Below is my boot log, does anyone have ideas/tips to resolve this?
U-Boot SPL 2014.01 (Feb 25 2014 - 21:55:07) OMAP5432 ES2.0
U-Boot 2014.01 (Feb 25 2014 - 21:55:07)
CPU : OMAP5432 ES2.0 Board: OMAP5432 uEVM I2C: ready DRAM: 2 GiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 Using default environment
SATA link 0 timeout. AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst scanning bus for devices... Found 0 device(s). Net: No ethernet found. Hit any key to stop autoboot: 0 mmc0 is current device SD/MMC found on device 0 ** Unrecognized filesystem type ** 4713776 bytes read in 271 ms (16.6 MiB/s) ** File not found /boot/omap5-uevm.dtb ** Booting from mmc0 ... Kernel image @ 0x80200000 [ 0x000000 - 0x47ed30 ] ERROR: Did not find a cmdline Flattened Device Tree Could not find a valid device tree mmc1(part 0) is current device SD/MMC found on device 1 ** Unrecognized filesystem type ** ** No partition table - mmc 1 **
I'm hoping to be able to demo this at Linaro Connect next week with Xen running ontop.
Thanks, Andy
Sorry I forgot the pointer to the repo with the modified packages!
https://build.opensuse.org/project/show/home:FunkyPenguin:ARM:OMAP5
According to your error message, you are missing the omap5-uevm.dtb file in /boot folder. Maybe it is in /boot/dtb instead. Try to copy it in the /boot folder. Guillaume -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Hi Guillaume, On 27-02-2014 12:46, Guillaume Gardet wrote:
Hi,
Le 27/02/2014 10:50, Andrew Wafaa a écrit :
On 27-02-2014 09:34, Andrew Wafaa wrote:
Hi,
I'm currently trying to bring up a uEVM board, and have what I believe all the correct components for it [0]. Regardless of having a dtb package and using kernel 3.14-rc2 it still fails to boot, with u-boot complaining. Below is my boot log, does anyone have ideas/tips to resolve this?
U-Boot SPL 2014.01 (Feb 25 2014 - 21:55:07) OMAP5432 ES2.0
U-Boot 2014.01 (Feb 25 2014 - 21:55:07)
CPU : OMAP5432 ES2.0 Board: OMAP5432 uEVM I2C: ready DRAM: 2 GiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 Using default environment
SATA link 0 timeout. AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst scanning bus for devices... Found 0 device(s). Net: No ethernet found. Hit any key to stop autoboot: 0 mmc0 is current device SD/MMC found on device 0 ** Unrecognized filesystem type ** 4713776 bytes read in 271 ms (16.6 MiB/s) ** File not found /boot/omap5-uevm.dtb ** Booting from mmc0 ... Kernel image @ 0x80200000 [ 0x000000 - 0x47ed30 ] ERROR: Did not find a cmdline Flattened Device Tree Could not find a valid device tree mmc1(part 0) is current device SD/MMC found on device 1 ** Unrecognized filesystem type ** ** No partition table - mmc 1 **
I'm hoping to be able to demo this at Linaro Connect next week with Xen running ontop.
Thanks, Andy
Sorry I forgot the pointer to the repo with the modified packages!
https://build.opensuse.org/project/show/home:FunkyPenguin:ARM:OMAP5
According to your error message, you are missing the omap5-uevm.dtb file in /boot folder. Maybe it is in /boot/dtb instead. Try to copy it in the /boot folder.
Indeed the .dtb was only in /boot/dtb. I copied it into /boot/boot and into /boot but still fail with the same error. Thanks, Andy
Guillaume
-- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
----- Andrew Wafaa <andrew@wafaa.eu> a écrit :
Hi Guillaume,
On 27-02-2014 12:46, Guillaume Gardet wrote:
Hi,
Le 27/02/2014 10:50, Andrew Wafaa a écrit :
On 27-02-2014 09:34, Andrew Wafaa wrote:
Hi,
I'm currently trying to bring up a uEVM board, and have what I believe all the correct components for it [0]. Regardless of having a dtb package and using kernel 3.14-rc2 it still fails to boot, with u-boot complaining. Below is my boot log, does anyone have ideas/tips to resolve this?
U-Boot SPL 2014.01 (Feb 25 2014 - 21:55:07) OMAP5432 ES2.0
U-Boot 2014.01 (Feb 25 2014 - 21:55:07)
CPU : OMAP5432 ES2.0 Board: OMAP5432 uEVM I2C: ready DRAM: 2 GiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 Using default environment
SATA link 0 timeout. AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst scanning bus for devices... Found 0 device(s). Net: No ethernet found. Hit any key to stop autoboot: 0 mmc0 is current device SD/MMC found on device 0 ** Unrecognized filesystem type ** 4713776 bytes read in 271 ms (16.6 MiB/s) ** File not found /boot/omap5-uevm.dtb ** Booting from mmc0 ... Kernel image @ 0x80200000 [ 0x000000 - 0x47ed30 ] ERROR: Did not find a cmdline Flattened Device Tree Could not find a valid device tree mmc1(part 0) is current device SD/MMC found on device 1 ** Unrecognized filesystem type ** ** No partition table - mmc 1 **
I'm hoping to be able to demo this at Linaro Connect next week with Xen running ontop.
Thanks, Andy
Sorry I forgot the pointer to the repo with the modified packages!
https://build.opensuse.org/project/show/home:FunkyPenguin:ARM:OMAP5
According to your error message, you are missing the omap5-uevm.dtb file in /boot folder. Maybe it is in /boot/dtb instead. Try to copy it in the /boot folder.
Indeed the .dtb was only in /boot/dtb. I copied it into /boot/boot and into /boot but still fail with the same error.
Just to be sure, you copy it in /boot folder on boot partition (1st partition)? It seems that your u-boot does not load boot.scr. Could you stop auto boot and give us the result of the 'print' command, please? Maybe try also 'run loadbootscript' command. Guillaume -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
On 27-02-2014 15:02, guillaume.gardet@free.fr wrote:
----- Andrew Wafaa <andrew@wafaa.eu> a écrit :
Hi Guillaume,
On 27-02-2014 12:46, Guillaume Gardet wrote:
Hi,
Le 27/02/2014 10:50, Andrew Wafaa a écrit :
On 27-02-2014 09:34, Andrew Wafaa wrote:
Hi,
I'm currently trying to bring up a uEVM board, and have what I believe all the correct components for it [0]. Regardless of having a dtb package and using kernel 3.14-rc2 it still fails to boot, with u-boot complaining. Below is my boot log, does anyone have ideas/tips to resolve this?
U-Boot SPL 2014.01 (Feb 25 2014 - 21:55:07) OMAP5432 ES2.0
U-Boot 2014.01 (Feb 25 2014 - 21:55:07)
CPU : OMAP5432 ES2.0 Board: OMAP5432 uEVM I2C: ready DRAM: 2 GiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 Using default environment
SATA link 0 timeout. AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst scanning bus for devices... Found 0 device(s). Net: No ethernet found. Hit any key to stop autoboot: 0 mmc0 is current device SD/MMC found on device 0 ** Unrecognized filesystem type ** 4713776 bytes read in 271 ms (16.6 MiB/s) ** File not found /boot/omap5-uevm.dtb ** Booting from mmc0 ... Kernel image @ 0x80200000 [ 0x000000 - 0x47ed30 ] ERROR: Did not find a cmdline Flattened Device Tree Could not find a valid device tree mmc1(part 0) is current device SD/MMC found on device 1 ** Unrecognized filesystem type ** ** No partition table - mmc 1 **
I'm hoping to be able to demo this at Linaro Connect next week with Xen running ontop.
Thanks, Andy
Sorry I forgot the pointer to the repo with the modified packages!
https://build.opensuse.org/project/show/home:FunkyPenguin:ARM:OMAP5
According to your error message, you are missing the omap5-uevm.dtb file in /boot folder. Maybe it is in /boot/dtb instead. Try to copy it in the /boot folder.
Indeed the .dtb was only in /boot/dtb. I copied it into /boot/boot and into /boot but still fail with the same error.
Just to be sure, you copy it in /boot folder on boot partition (1st partition)?
It seems that your u-boot does not load boot.scr. Could you stop auto boot and give us the result of the 'print' command, please?
Output from print command: # print arch=arm baudrate=115200 board=omap5_uevm board_name=omap5_uevm bootcmd=run findfdt; run mmcboot;setenv mmcdev 1; setenv bootpart 1:2; setenv mmcroot /dev/mmcblk0p2 rw; run mmcboot; bootdelay=1 bootdir=/boot bootfile=zImage bootpart=0:2 bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr} console=ttyO2,115200n8 cpu=armv7 fdt_high=0xffffffff fdtaddr=0x80F80000 fdtfile=undefined findfdt=if test $board_name = omap5_uevm; then setenv fdtfile omap5-uevm.dtb; fi; if test $board_name = dra7xx; then setenv fdtfile dra7-evm.dtb; fi;if test $fdtfile = undefined; then echo WARNING: Could not determine device tree to use; fi; importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t ${loadaddr} ${filesize} loadaddr=0x80200000 loadbootenv=fatload mmc ${mmcdev} ${loadaddr} uEnv.txt loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}; loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile} mmcargs=setenv bootargs console=${console} ${optargs} vram=${vram} root=${mmcroot} rootfstype=${mmcrootfstype} mmcboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadbootenv; then echo Loaded environment from ${bootenv};run importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;if run loadimage; then run loadfdt; echo Booting from mmc${mmcdev} ...; run mmcargs; bootz ${loadaddr} - ${fdtaddr}; fi;fi; mmcdev=0 mmcroot=/dev/mmcblk1p2 rw mmcrootfstype=ext4 rootwait partitions=uuid_disk=${uuid_gpt_disk};name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs} rdaddr=0x81000000 scsidevs=0 soc=omap5 stderr=serial stdin=serial stdout=serial usbethaddr=02:21:03:5f:0e:70 usbtty=cdc_acm vendor=ti ver=U-Boot 2014.01 (Feb 25 2014 - 21:55:07) vram=16M Environment size: 1904/131067 bytes
Maybe try also 'run loadbootscript' command.
This results in ** Unrecognized filesystem type ** Regards, Andy -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
----- Andrew Wafaa <andrew@wafaa.eu> a écrit :
On 27-02-2014 15:02, guillaume.gardet@free.fr wrote:
----- Andrew Wafaa <andrew@wafaa.eu> a écrit :
Hi Guillaume,
On 27-02-2014 12:46, Guillaume Gardet wrote:
Hi,
Le 27/02/2014 10:50, Andrew Wafaa a écrit :
On 27-02-2014 09:34, Andrew Wafaa wrote:
Hi,
I'm currently trying to bring up a uEVM board, and have what I believe all the correct components for it [0]. Regardless of having a dtb package and using kernel 3.14-rc2 it still fails to boot, with u-boot complaining. Below is my boot log, does anyone have ideas/tips to resolve this?
U-Boot SPL 2014.01 (Feb 25 2014 - 21:55:07) OMAP5432 ES2.0
U-Boot 2014.01 (Feb 25 2014 - 21:55:07)
CPU : OMAP5432 ES2.0 Board: OMAP5432 uEVM I2C: ready DRAM: 2 GiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 Using default environment
SATA link 0 timeout. AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst scanning bus for devices... Found 0 device(s). Net: No ethernet found. Hit any key to stop autoboot: 0 mmc0 is current device SD/MMC found on device 0 ** Unrecognized filesystem type ** 4713776 bytes read in 271 ms (16.6 MiB/s) ** File not found /boot/omap5-uevm.dtb ** Booting from mmc0 ... Kernel image @ 0x80200000 [ 0x000000 - 0x47ed30 ] ERROR: Did not find a cmdline Flattened Device Tree Could not find a valid device tree mmc1(part 0) is current device SD/MMC found on device 1 ** Unrecognized filesystem type ** ** No partition table - mmc 1 **
I'm hoping to be able to demo this at Linaro Connect next week with Xen running ontop.
Thanks, Andy
Sorry I forgot the pointer to the repo with the modified packages!
https://build.opensuse.org/project/show/home:FunkyPenguin:ARM:OMAP5
According to your error message, you are missing the omap5-uevm.dtb file in /boot folder. Maybe it is in /boot/dtb instead. Try to copy it in the /boot folder.
Indeed the .dtb was only in /boot/dtb. I copied it into /boot/boot and into /boot but still fail with the same error.
Just to be sure, you copy it in /boot folder on boot partition (1st partition)?
It seems that your u-boot does not load boot.scr. Could you stop auto boot and give us the result of the 'print' command, please?
Output from print command: # print arch=arm baudrate=115200 board=omap5_uevm board_name=omap5_uevm bootcmd=run findfdt; run mmcboot;setenv mmcdev 1; setenv bootpart 1:2; setenv mmcroot /dev/mmcblk0p2 rw; run mmcboot; bootdelay=1 bootdir=/boot bootfile=zImage bootpart=0:2 bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr} console=ttyO2,115200n8 cpu=armv7 fdt_high=0xffffffff fdtaddr=0x80F80000 fdtfile=undefined findfdt=if test $board_name = omap5_uevm; then setenv fdtfile omap5-uevm.dtb; fi; if test $board_name = dra7xx; then setenv fdtfile dra7-evm.dtb; fi;if test $fdtfile = undefined; then echo WARNING: Could not determine device tree to use; fi; importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t ${loadaddr} ${filesize} loadaddr=0x80200000 loadbootenv=fatload mmc ${mmcdev} ${loadaddr} uEnv.txt loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}; loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile} mmcargs=setenv bootargs console=${console} ${optargs} vram=${vram} root=${mmcroot} rootfstype=${mmcrootfstype} mmcboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadbootenv; then echo Loaded environment from ${bootenv};run importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;if run loadimage; then run loadfdt; echo Booting from mmc${mmcdev} ...; run mmcargs; bootz ${loadaddr} - ${fdtaddr}; fi;fi; mmcdev=0 mmcroot=/dev/mmcblk1p2 rw mmcrootfstype=ext4 rootwait partitions=uuid_disk=${uuid_gpt_disk};name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs} rdaddr=0x81000000 scsidevs=0 soc=omap5 stderr=serial stdin=serial stdout=serial usbethaddr=02:21:03:5f:0e:70 usbtty=cdc_acm vendor=ti ver=U-Boot 2014.01 (Feb 25 2014 - 21:55:07) vram=16M
Environment size: 1904/131067 bytes
You still have an old image. I mean your image does not include all your patches for u-boot. Try to type: mmc dev 1 (or mmc dev 0) mmc rescan load mmc 0:1 0x82000000 boot.scr It should load your boot.scr script.
Maybe try also 'run loadbootscript' command.
This results in ** Unrecognized filesystem type **
Look at your loadbootscript var: loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr I guess your boot partition is EXT2, 3 or 4, not FAT? Guillaume -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
On 27-02-2014 15:16, guillaume.gardet@free.fr wrote:
Output from print command: # print arch=arm baudrate=115200 board=omap5_uevm board_name=omap5_uevm bootcmd=run findfdt; run mmcboot;setenv mmcdev 1; setenv bootpart 1:2; setenv mmcroot /dev/mmcblk0p2 rw; run mmcboot; bootdelay=1 bootdir=/boot bootfile=zImage bootpart=0:2 bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr} console=ttyO2,115200n8 cpu=armv7 fdt_high=0xffffffff fdtaddr=0x80F80000 fdtfile=undefined findfdt=if test $board_name = omap5_uevm; then setenv fdtfile omap5-uevm.dtb; fi; if test $board_name = dra7xx; then setenv fdtfile dra7-evm.dtb; fi;if test $fdtfile = undefined; then echo WARNING: Could not determine device tree to use; fi; importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t ${loadaddr} ${filesize} loadaddr=0x80200000 loadbootenv=fatload mmc ${mmcdev} ${loadaddr} uEnv.txt loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}; loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile} mmcargs=setenv bootargs console=${console} ${optargs} vram=${vram} root=${mmcroot} rootfstype=${mmcrootfstype} mmcboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadbootenv; then echo Loaded environment from ${bootenv};run importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;if run loadimage; then run loadfdt; echo Booting from mmc${mmcdev} ...; run mmcargs; bootz ${loadaddr} - ${fdtaddr}; fi;fi; mmcdev=0 mmcroot=/dev/mmcblk1p2 rw mmcrootfstype=ext4 rootwait partitions=uuid_disk=${uuid_gpt_disk};name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs} rdaddr=0x81000000 scsidevs=0 soc=omap5 stderr=serial stdin=serial stdout=serial usbethaddr=02:21:03:5f:0e:70 usbtty=cdc_acm vendor=ti ver=U-Boot 2014.01 (Feb 25 2014 - 21:55:07) vram=16M
Environment size: 1904/131067 bytes
You still have an old image. I mean your image does not include all your patches for u-boot.
Try to type: mmc dev 1 (or mmc dev 0) mmc rescan load mmc 0:1 0x82000000 boot.scr
It should load your boot.scr script.
It seems to load the boot.scr without error, but still fails to boot.
Maybe try also 'run loadbootscript' command.
This results in ** Unrecognized filesystem type **
Look at your loadbootscript var: loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr
I guess your boot partition is EXT2, 3 or 4, not FAT?
I'm somewhat confused. I can't see why it is getting fatload, everything I can see says either ext2 as the filesystem type and loadscript=load. Why fatload is getting there I just don't know. Where should uEnv.txt be located? Thanks, Andy
Guillaume -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
----- Andrew Wafaa <andrew@wafaa.eu> a écrit :
On 27-02-2014 15:16, guillaume.gardet@free.fr wrote:
Output from print command: # print arch=arm baudrate=115200 board=omap5_uevm board_name=omap5_uevm bootcmd=run findfdt; run mmcboot;setenv mmcdev 1; setenv bootpart 1:2; setenv mmcroot /dev/mmcblk0p2 rw; run mmcboot; bootdelay=1 bootdir=/boot bootfile=zImage bootpart=0:2 bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr} console=ttyO2,115200n8 cpu=armv7 fdt_high=0xffffffff fdtaddr=0x80F80000 fdtfile=undefined findfdt=if test $board_name = omap5_uevm; then setenv fdtfile omap5-uevm.dtb; fi; if test $board_name = dra7xx; then setenv fdtfile dra7-evm.dtb; fi;if test $fdtfile = undefined; then echo WARNING: Could not determine device tree to use; fi; importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t ${loadaddr} ${filesize} loadaddr=0x80200000 loadbootenv=fatload mmc ${mmcdev} ${loadaddr} uEnv.txt loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}; loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile} mmcargs=setenv bootargs console=${console} ${optargs} vram=${vram} root=${mmcroot} rootfstype=${mmcrootfstype} mmcboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadbootenv; then echo Loaded environment from ${bootenv};run importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;if run loadimage; then run loadfdt; echo Booting from mmc${mmcdev} ...; run mmcargs; bootz ${loadaddr} - ${fdtaddr}; fi;fi; mmcdev=0 mmcroot=/dev/mmcblk1p2 rw mmcrootfstype=ext4 rootwait partitions=uuid_disk=${uuid_gpt_disk};name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs} rdaddr=0x81000000 scsidevs=0 soc=omap5 stderr=serial stdin=serial stdout=serial usbethaddr=02:21:03:5f:0e:70 usbtty=cdc_acm vendor=ti ver=U-Boot 2014.01 (Feb 25 2014 - 21:55:07) vram=16M
Environment size: 1904/131067 bytes
You still have an old image. I mean your image does not include all your patches for u-boot.
Try to type: mmc dev 1 (or mmc dev 0) mmc rescan load mmc 0:1 0x82000000 boot.scr
It should load your boot.scr script.
It seems to load the boot.scr without error, but still fails to boot.
Forgot to add 'source 0x82000000' to run boot.scr script.
Maybe try also 'run loadbootscript' command.
This results in ** Unrecognized filesystem type **
Look at your loadbootscript var: loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr
I guess your boot partition is EXT2, 3 or 4, not FAT?
I'm somewhat confused. I can't see why it is getting fatload, everything I can see says either ext2 as the filesystem type and loadscript=load. Why fatload is getting there I just don't know.
Because you are using a non patched u-boot.
Where should uEnv.txt be located?
We do not use it, so I do not know. Guillaume -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
On 27-02-2014 17:40, guillaume.gardet@free.fr wrote:
----- Andrew Wafaa <andrew@wafaa.eu> a écrit :
On 27-02-2014 15:16, guillaume.gardet@free.fr wrote:
Output from print command: # print arch=arm baudrate=115200 board=omap5_uevm board_name=omap5_uevm bootcmd=run findfdt; run mmcboot;setenv mmcdev 1; setenv bootpart 1:2; setenv mmcroot /dev/mmcblk0p2 rw; run mmcboot; bootdelay=1 bootdir=/boot bootfile=zImage bootpart=0:2 bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr} console=ttyO2,115200n8 cpu=armv7 fdt_high=0xffffffff fdtaddr=0x80F80000 fdtfile=undefined findfdt=if test $board_name = omap5_uevm; then setenv fdtfile omap5-uevm.dtb; fi; if test $board_name = dra7xx; then setenv fdtfile dra7-evm.dtb; fi;if test $fdtfile = undefined; then echo WARNING: Could not determine device tree to use; fi; importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t ${loadaddr} ${filesize} loadaddr=0x80200000 loadbootenv=fatload mmc ${mmcdev} ${loadaddr} uEnv.txt loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}; loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile} mmcargs=setenv bootargs console=${console} ${optargs} vram=${vram} root=${mmcroot} rootfstype=${mmcrootfstype} mmcboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadbootenv; then echo Loaded environment from ${bootenv};run importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;if run loadimage; then run loadfdt; echo Booting from mmc${mmcdev} ...; run mmcargs; bootz ${loadaddr} - ${fdtaddr}; fi;fi; mmcdev=0 mmcroot=/dev/mmcblk1p2 rw mmcrootfstype=ext4 rootwait partitions=uuid_disk=${uuid_gpt_disk};name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs} rdaddr=0x81000000 scsidevs=0 soc=omap5 stderr=serial stdin=serial stdout=serial usbethaddr=02:21:03:5f:0e:70 usbtty=cdc_acm vendor=ti ver=U-Boot 2014.01 (Feb 25 2014 - 21:55:07) vram=16M
Environment size: 1904/131067 bytes
You still have an old image. I mean your image does not include all your patches for u-boot.
Try to type: mmc dev 1 (or mmc dev 0) mmc rescan load mmc 0:1 0x82000000 boot.scr
It should load your boot.scr script.
It seems to load the boot.scr without error, but still fails to boot.
Forgot to add 'source 0x82000000' to run boot.scr script.
Maybe try also 'run loadbootscript' command.
This results in ** Unrecognized filesystem type **
Look at your loadbootscript var: loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr
I guess your boot partition is EXT2, 3 or 4, not FAT?
I'm somewhat confused. I can't see why it is getting fatload, everything I can see says either ext2 as the filesystem type and loadscript=load. Why fatload is getting there I just don't know.
Because you are using a non patched u-boot.
I copied u-boot from openSUSE:Factory:ARM, so how come it's unpatched, where can I get the correct one?
Where should uEnv.txt be located?
We do not use it, so I do not know.
OK, I'm not sure if it's needed or not. I know Nishanth mentioned using it, but I don't think it's vital. Thanks, Andy
Guillaume
-- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
On 02/27/2014 11:43 AM, Andrew Wafaa wrote:
On 27-02-2014 17:40, guillaume.gardet@free.fr wrote:
----- Andrew Wafaa <andrew@wafaa.eu> a écrit :
On 27-02-2014 15:16, guillaume.gardet@free.fr wrote: [..] Where should uEnv.txt be located?
We do not use it, so I do not know.
OK, I'm not sure if it's needed or not. I know Nishanth mentioned using it, but I don't think it's vital.
you can choose either to use boot.scr or the newer uEnv.txt -> traditional usage since a long time is uEnv.txt. boot.scr is binary and has additional benefit of having checksum etc, but uEnv.txt has the benefit of being easily readable (text file) and modifiable if needed (not that boot.scr cannot be regenerated with mkimage). Usually no modification to variables to u-boot defaults should be done For example: https://github.com/eewiki/u-boot-patches/blob/master/v2014.01/0001-omap5_com... +#define CONFIG_SUPPORT_RAW_INITRD +#define CONFIG_BOOTDELAY 1 are probably the only valid change All other modifications such as loadaddr, mmcroot.... can easily be done in boot.scr/uEnv.txt (depending on where zImage, dtbs are located). But I guess, distros prefer to have a different requirements - but I suggest debating them in u-boot mailing list as well. -- Regards, Nishanth Menon -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Le 27/02/2014 18:43, Andrew Wafaa a écrit :
On 27-02-2014 17:40, guillaume.gardet@free.fr wrote:
----- Andrew Wafaa <andrew@wafaa.eu> a écrit :
On 27-02-2014 15:16, guillaume.gardet@free.fr wrote:
Output from print command: # print arch=arm baudrate=115200 board=omap5_uevm board_name=omap5_uevm bootcmd=run findfdt; run mmcboot;setenv mmcdev 1; setenv bootpart 1:2; setenv mmcroot /dev/mmcblk0p2 rw; run mmcboot; bootdelay=1 bootdir=/boot bootfile=zImage bootpart=0:2 bootscript=echo Running bootscript from mmc${mmcdev} ...; source ${loadaddr} console=ttyO2,115200n8 cpu=armv7 fdt_high=0xffffffff fdtaddr=0x80F80000 fdtfile=undefined findfdt=if test $board_name = omap5_uevm; then setenv fdtfile omap5-uevm.dtb; fi; if test $board_name = dra7xx; then setenv fdtfile dra7-evm.dtb; fi;if test $fdtfile = undefined; then echo WARNING: Could not determine device tree to use; fi; importbootenv=echo Importing environment from mmc${mmcdev} ...; env import -t ${loadaddr} ${filesize} loadaddr=0x80200000 loadbootenv=fatload mmc ${mmcdev} ${loadaddr} uEnv.txt loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}; loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile} mmcargs=setenv bootargs console=${console} ${optargs} vram=${vram} root=${mmcroot} rootfstype=${mmcrootfstype} mmcboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadbootenv; then echo Loaded environment from ${bootenv};run importbootenv;fi;if test -n $uenvcmd; then echo Running uenvcmd ...;run uenvcmd;fi;if run loadimage; then run loadfdt; echo Booting from mmc${mmcdev} ...; run mmcargs; bootz ${loadaddr} - ${fdtaddr}; fi;fi; mmcdev=0 mmcroot=/dev/mmcblk1p2 rw mmcrootfstype=ext4 rootwait partitions=uuid_disk=${uuid_gpt_disk};name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs} rdaddr=0x81000000 scsidevs=0 soc=omap5 stderr=serial stdin=serial stdout=serial usbethaddr=02:21:03:5f:0e:70 usbtty=cdc_acm vendor=ti ver=U-Boot 2014.01 (Feb 25 2014 - 21:55:07) vram=16M
Environment size: 1904/131067 bytes
You still have an old image. I mean your image does not include all your patches for u-boot.
Try to type: mmc dev 1 (or mmc dev 0) mmc rescan load mmc 0:1 0x82000000 boot.scr
It should load your boot.scr script.
It seems to load the boot.scr without error, but still fails to boot.
Forgot to add 'source 0x82000000' to run boot.scr script.
Maybe try also 'run loadbootscript' command.
This results in ** Unrecognized filesystem type **
Look at your loadbootscript var: loadbootscript=fatload mmc ${mmcdev} ${loadaddr} boot.scr
I guess your boot partition is EXT2, 3 or 4, not FAT?
I'm somewhat confused. I can't see why it is getting fatload, everything I can see says either ext2 as the filesystem type and loadscript=load. Why fatload is getting there I just don't know.
Because you are using a non patched u-boot.
I copied u-boot from openSUSE:Factory:ARM, so how come it's unpatched, where can I get the correct one?
I mean your are not using your latest u-boot-omap5uevm.
Where should uEnv.txt be located?
We do not use it, so I do not know.
OK, I'm not sure if it's needed or not. I know Nishanth mentioned using it, but I don't think it's vital.
If your boot.scr is ok, then you do not need it. Guillaume -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
participants (4)
-
Andrew Wafaa
-
Guillaume Gardet
-
guillaume.gardet@free.fr
-
Nishanth Menon