dont get kernel booted, boot process ends with 'Starting kernel ...'

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

dont get kernel booted, boot process ends with 'Starting kernel ...'

ソリューションへジャンプ
9,725件の閲覧回数
juergenvorbach
Contributor III

I have done the installation part on a SD-Card as described and shown below. But I just get until a Starting Kernel ... message, no further.

Does anyone know how to fix this?

Thanks in advance

  

     Juergen

----------------------------------------------------

my Hyperterminal Bootsequence is:

U-Boot 2013.04 (Sep 19 2014 - 17:56:15)

CPU:   Freescale i.MX6Q rev1.2 at 792 MHz

CPU:   Temperature 45 C, calibration data: 0x5a74db7d

Reset cause: POR

Board: MX6Q/SDL-SabreSD

I2C:   ready

DRAM:  1 GiB

MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2

No panel detected: default to Hannstar-XGA

Display: Hannstar-XGA (1024x768)

In:    serial

Out:   serial

Err:   serial

Found PFUZE100! deviceid=10,revid=11

mmc1 is current device

Net:   FEC [PRIME]

Normal Boot

Hit any key to stop autoboot:  0

mmc1 is current device

MMC read: dev # 1, block # 2048, count 12288 ... 12288 blocks read: OK

MMC read: dev # 1, block # 20480, count 2048 ... 2048 blocks read: OK

## Booting kernel from Legacy Image at 12000000 ...

   Image Name:   Linux-3.10.17-1.0.2_ga+g33597e3

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    5260744 Bytes = 5 MiB

   Load Address: 10008000

   Entry Point:  10008000

   Verifying Checksum ... OK

## Flattened Device Tree blob at 18000000

   Booting using the fdt blob at 0x18000000

   Loading Kernel Image ... OK

OK

switch to ldo_bypass mode!

   Using Device Tree in place at 18000000, end 1800ebac

Starting kernel ...

and I don't get any further.

Everything is based on the package: fsl-L3.10.17_1.0.2_iMX6QDLS_Bundle.tar.gz

what I did before was:

U-Boot > setenv loadaddr 0x12000000
U-Boot > setenv fdt_addr 0x18000000
U-Boot > setenv fdt_high 0xffffffff
U-Boot > setenv bootargs_base 'setenv bootargs console=ttymxc0,115200'
U-Boot > setenv bootargs_mmc 'setenv bootargs ${bootargs} root=/dev/mmcblk0p2 rootwait rw video=mxcfb1:dev=ldb,LDB-XGA,if=RGB666 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24'
U-Boot > setenv bootcmd_mmc 'run bootargs_base bootargs_mmc;mmc dev 1;mmc read ${loadaddr} 0x800 0x3000;mmc read ${fdt_addr} 0x5000 0x800;bootm ${loadaddr} - ${fdt_addr}'
U-Boot > setenv bootcmd 'run bootcmd_mmc'
U-Boot > saveenv
U-Boot > run bootcmd

and

#!/bin/sh
DEV=sdc
BOOTLOADER=u-boot-imx6qsabresd_sd.imx
KERNEL=uImage_imx_v7_defconfig
DTB=uImage-imx6dl-sabresd-hdcp.dtb
#
#Copying the Boot Loader Image, offset=1k

sudo dd if=$BOOTLOADER of=/dev/$DEV bs=512 seek=2 conv=fsync
#Copying the Kernel Image and DTB File, offset=1M
sudo dd if=$KERNEL of=/dev/$DEV bs=512 seek=2048 conv=fsync
#DTB, offset=10M
sudo dd if=$DTB of=/dev/$DEV bs=512 seek=20480 conv=fsync
#

also by hand:

#sudo fdisk /dev/$DEV
#sudo mkfs.ext4 /dev/${DEV}1
#
#sudo mount /dev/${DEV}1 /home/juergen/tmp/mnt
#sudo mount -o loop -t ext3 fsl-image-weston-imx6qdlsolo.ext3 /home/juergen/tmp/rootfs
#cd /home/juergen/tmp/rootfs
#sudo cp -a * /home/juergen/tmp/mnt

I received from command output:

733+1 Datensätze ein
733+1 Datensätze aus
375488 Bytes (375 kB) kopiert, 3,37769 s, 111 kB/s
10275+1 Datensätze ein
10275+1 Datensätze aus
5260808 Bytes (5,3 MB) kopiert, 35,8851 s, 147 kB/s
93+1 Datensätze ein
93+1 Datensätze aus
48045 Bytes (48 kB) kopiert, 1,03537 s, 46,4 kB/s

so everything seemed to be ok.

ラベル(3)
タグ(4)
1 解決策
7,269件の閲覧回数
juergenvorbach
Contributor III

For those who run into the same problem.

I changed my setup script to:

#!/bin/sh

DEV=sdc

BOOTLOADER=u-boot-imx6qsabresd_sd.imx

KERNEL=uImage_imx_v7_defconfig

DTB=uImage-imx6q-sabresd-ldo.dtb

#

#Copying the Boot Loader Image, offset=1k

sudo dd if=$BOOTLOADER of=/dev/$DEV bs=512 seek=2 conv=fsync

#Copying the Kernel Image and DTB File, offset=1M

sudo dd if=$KERNEL of=/dev/$DEV bs=512 seek=2048 conv=fsync

#DTB, offset=10M

sudo dd if=$DTB of=/dev/$DEV bs=512 seek=20480 conv=fsync

and now it runs.

元の投稿で解決策を見る

19 返答(返信)
7,270件の閲覧回数
juergenvorbach
Contributor III

For those who run into the same problem.

I changed my setup script to:

#!/bin/sh

DEV=sdc

BOOTLOADER=u-boot-imx6qsabresd_sd.imx

KERNEL=uImage_imx_v7_defconfig

DTB=uImage-imx6q-sabresd-ldo.dtb

#

#Copying the Boot Loader Image, offset=1k

sudo dd if=$BOOTLOADER of=/dev/$DEV bs=512 seek=2 conv=fsync

#Copying the Kernel Image and DTB File, offset=1M

sudo dd if=$KERNEL of=/dev/$DEV bs=512 seek=2048 conv=fsync

#DTB, offset=10M

sudo dd if=$DTB of=/dev/$DEV bs=512 seek=20480 conv=fsync

and now it runs.

7,269件の閲覧回数
jaymind
Contributor IV

Hello,

Good work Juergen Vorbach,

works fine... :smileyhappy: .... DTB=uImage-imx6q-sabresd-ldo.dtb

interesting to know.

Thanks and Regards.

Best Luck.

Jaymin D

0 件の賞賛
返信
7,269件の閲覧回数
jaymind
Contributor IV

Hi ,

Can you please write down your all arguments which shown at 'printenv' command in u-boot

and also mention your details that which type of board you used, about RFS and Kernel uImage,

so its good to answer in best way.

I think there may be problem in u-boot side as I assume.

Thanks

Jaymin D

0 件の賞賛
返信
7,269件の閲覧回数
juergenvorbach
Contributor III

Hi Jaymin,

I think it's all written down so far, but I can do it once more

U-Boot > pri

baudrate=115200

boot_fdt=try

bootargs=console=ttymxc0,115200 root=/dev/

bootargs_base=setenv bootargs console=ttymxc0,115200

bootargs_mmc=setenv bootargs ${bootargs} root=/dev/mmcblk0p1 rootwait rw video=mxcfb1:dev=ldb,LDB-XGA,if=RGB666 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24

bootcmd=run bootcmd_mmc

bootcmd_mfg=run mfgtool_args;bootm ${loadaddr} ${initrd_addr} ${fdt_addr};

bootcmd_mmc=run bootargs_base bootargs_mmc;mmc dev 1;mmc read ${loadaddr} 0x800 0x3000;mmc read ${fdt_addr} 0x5000 0x800;bootm ${loadaddr} - ${fdt_addr}

bootdelay=1

bootscript=echo Running bootscript from mmc ...; source

console=ttymxc0

ethact=FEC

ethaddr=00:04:9f:02:6c:b5

ethprime=FEC

fdt_addr=0x18000000

fdt_file=imx6q-sabresd.dtb

fdt_high=0xffffffff

get_cmd=dhcp

initrd_addr=0x12C00000

initrd_high=0xffffffff

ip_dyn=yes

ipaddr=172.30.50.175

loadaddr=0x12000000

loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};

loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}

loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}

mfgtool_args=setenv bootargs console=ttymxc0,115200 rdinit=/linuxrc g_mass_storage.stall=0 g_mass_storage.removable=1 g_mass_storage.idVendor=0x066F g_mass_storage.idProduct=0x37FF g_mass_storage.iSerialNumber="" enable_wait_mode=off

mmcargs=setenv bootargs console=${console},${baudrate} ${smp} root=${mmcroot}

mmcboot=echo Booting from mmc ...; run mmcargs; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootm ${loadaddr} - ${fdt_addr};else if test ${boot_fdt} = try; then bootm; else echo WARN: Cannot load the DT;fi; fi; else bootm; fi;

mmcdev=1

mmcpart=1

mmcroot=/dev/mmcblk0p2 rootwait rw

netargs=setenv bootargs console=${console},${baudrate} ${smp} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp

netboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${uimage}; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt_file}; then bootm ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootm; else echo WARN: Cannot load the DT; fi; fi; else bootm; fi;

netmask=255.255.255.0

panel=Hannstar-XGA

script=boot.scr

serverip=172.30.50.125

uimage=uImage

Environment size: 2364/8188 bytes

U-Boot >

:

===

My board is a SABRE Smart Devices Board

     MPN: MCIMX6Q-SDB

     LOT: X6HJ130373

     DTE: 1303

     QTY: 1

     LPN: RU000098EJ

whatever this all means.

===

I have downloaded :      fsl-L3.10.17_1.0.2_iMX6QDLS_Bundle.tar.gz

and documentation :     fsl-yocto-3.10.17_1.0.0.tar.gz

===

My install script is:

     #!/bin/sh

     DEV=sdc

     BOOTLOADER=u-boot-imx6qsabresd_sd.imx

     KERNEL=uImage_imx_v7_defconfig

     DTB=uImage-imx6dl-sabresd-hdcp.dtb

#

#Copying the Boot Loader Image, offset=1k

     sudo dd if=$BOOTLOADER of=/dev/$DEV bs=512 seek=2 conv=fsync

#Copying the Kernel Image and DTB File, offset=1M

     sudo dd if=$KERNEL of=/dev/$DEV bs=512 seek=2048 conv=fsync

#DTB, offset=10M

     sudo dd if=$DTB of=/dev/$DEV bs=512 seek=20480 conv=fsync

#

#did the rest by hand as described in the documentation ... Users guide

     sudo fdisk /dev/sdc

     sudo mkfs.ext4 /dev/sdc1

#

     sudo mount /dev/sdc1 /home/juergen/tmp/mnt

     sudo mount -o loop -t ext3 fsl-image-weston-imx6qdlsolo.ext3 /home/juergen/tmp/rootfs

     cd /home/juergen/tmp/rootfs

     sudo cp -a * /home/juergen/tmp/mnt

===

in u-boot i did:

U-Boot > setenv loadaddr 0x12000000
U-Boot > setenv fdt_addr 0x18000000
U-Boot > setenv fdt_high 0xffffffff
U-Boot > setenv bootargs_base 'setenv bootargs console=ttymxc0,115200'
U-Boot > setenv bootargs_mmc 'setenv bootargs ${bootargs} root=/dev/mmcblk0p2 rootwait rw video=mxcfb1:dev=ldb,LDB-XGA,if=RGB666 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24'
U-Boot > setenv bootcmd_mmc 'run bootargs_base bootargs_mmc;mmc dev 1;mmc read ${loadaddr} 0x800 0x3000;mmc read ${fdt_addr} 0x5000 0x800;bootm ${loadaddr} - ${fdt_addr}'
U-Boot > setenv bootcmd 'run bootcmd_mmc'
U-Boot > saveenv
U-Boot > run bootcmd

===

BTW: I ran into kernel CRC Errors the first time, so I corrected 0x2000 to 0x3000 in bootcmd_mmc as shown above, from then on I got a little further but it stopped with the 'Starting kernel ...' message

(0x2000 is still mentioned in the users guide)

===

refer to my first posting to get all details if anything is missing.

===

anything more you need to know?

Kind regards

     Juergen

0 件の賞賛
返信
7,269件の閲覧回数
jaymind
Contributor IV

Hello,

Some errors as shown in your argument.

We will correct it, maybe its work.

in setenv bootargs_mmc 'setenv bootargs ${bootargs} root=/dev/mmcblk0p2 rootwait rw video=mxcfb1:dev=ldb,LDB-XGA,if=RGB666


there are /dev/mmcblk0p2 instead of /dev/mmcblk0p1 (name of SD card partition where uImage) and video=mxcfb1 insted of mxcfb0

set below argument in your u-boot from starting.

setenv console ttymxc1

setenv baudrate 115200

setenv mmcdev 0

setenv mmcpart 1

setenv mmcroot /dev/mmcblk0p1 rootwait rw

setenv mmcargs setenv bootargs console=${console},${baudrate} consoleblank=0 root=${mmcroot} xl4 video=mxcfb0:dev=ldb,LDB-XGA,if=RGB666

check with xl4 and without xl4 in last argument. (don't forget)

after entering all arguments and save it if you get u-boot prompts then you are on correct direction.

and enter " bootm " in u-boot prompts after setting all arguments to extract kernel.


Also provide me some hyper-terminal / minicom output after save all above argument and also your 'printenv' output of u-boot then will get idea and move forward to correct direction.

Hope above information helpful to you.

Best Luck

Jaymin D

0 件の賞賛
返信
7,269件の閲覧回数
juergenvorbach
Contributor III

Hi Jaymin

bootm reports:

    U-Boot > bootm

    Wrong Image Format for bootm command

    ERROR: can't get kernel image!

    U-Boot >

the boot procedure still is:

    U-Boot 2013.04 (Sep 19 2014 - 17:56:15)

    CPU:  Freescale i.MX6Q rev1.2 at 792 MHz

    CPU:  Temperature 44 C, calibration data: 0x5a74db7d

    Reset cause: POR

    Board: MX6Q/SDL-SabreSD

    I2C:  ready

    DRAM:  1 GiB

    MMC:  FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2

    Display: Hannstar-XGA (1024x768)

    In:    serial

    Out:  serial

    Err:  serial

    Found PFUZE100! deviceid=10,revid=11

    mmc1 is current device

    Net:  FEC

    Normal Boot

    Hit any key to stop autoboot:  0

    mmc1 is current device

    MMC read: dev # 1, block # 2048, count 12288 ... 12288 blocks read: OK

    MMC read: dev # 1, block # 20480, count 2048 ... 2048 blocks read: OK

  

    1. Booting kernel from Legacy Image at 12000000 ...

        Image Name:  Linux-3.10.17-1.0.2_ga+g33597e3

        Image Type:  ARM Linux Kernel Image (uncompressed)

        Data Size:    5260744 Bytes = 5 MiB

        Load Address: 10008000

        Entry Point:  10008000

        Verifying Checksum ... OK

  

    1. Flattened Device Tree blob at 18000000

        Booting using the fdt blob at 0x18000000

        Loading Kernel Image ... OK

    OK

    switch to ldo_bypass mode!

        Using Device Tree in place at 18000000, end 1800ebac

    Starting kernel ...

reporting some OKs after checksum, loading kernel image etc.

U-Boot > printenv

baudrate=115200

boot_fdt=try

bootargs=console=ttymxc0,115200 root=/dev/

bootargs_base=setenv bootargs console=ttymxc0,115200

bootargs_mmc=setenv bootargs ${bootargs} root=/dev/mmcblk0p1 rootwait rw video=m

xcfb1:dev=ldb,LDB-XGA,if=RGB666 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24

bootcmd=run bootcmd_mmc

bootcmd_mfg=run mfgtool_args;bootm ${loadaddr} ${initrd_addr} ${fdt_addr};

bootcmd_mmc=run bootargs_base bootargs_mmc;mmc dev 1;mmc read ${loadaddr} 0x800

0x3000;mmc read ${fdt_addr} 0x5000 0x800;bootm ${loadaddr} - ${fdt_addr}

bootdelay=1

bootscript=echo Running bootscript from mmc ...; source

console=ttymxc1

ethact=FEC

ethaddr=00:04:9f:02:6c:b5

ethprime=FEC

fdt_addr=0x18000000

fdt_file=imx6q-sabresd.dtb

fdt_high=0xffffffff

get_cmd=dhcp

initrd_addr=0x12C00000

initrd_high=0xffffffff

ip_dyn=yes

ipaddr=172.30.50.175

loadaddr=0x12000000

loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};

loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}

loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}

mfgtool_args=setenv bootargs console=ttymxc0,115200 rdinit=/linuxrc g_mass_stora

ge.stall=0 g_mass_storage.removable=1 g_mass_storage.idVendor=0x066F g_mass_stor

age.idProduct=0x37FF g_mass_storage.iSerialNumber="" enable_wait_mode=off

mmcargs=setenv bootargs console=ttymxc1,115200 consoleblank=0 root=/dev/mmcblk0p

1 rootwait rw video=mxcfb0:dev=ldb,LDB-XGA,if=RGB666

mmcboot=echo Booting from mmc ...; run mmcargs; if test ${boot_fdt} = yes || tes

t ${boot_fdt} = try; then if run loadfdt; then bootm ${loadaddr} - ${fdt_addr};

else if test ${boot_fdt} = try; then bootm; else echo WARN: Cannot load the DT;

fi; fi; else bootm; fi;

mmcdev=1

mmcpart=1

mmcroot=/dev/mmcblk0p1 rootwait rw

netargs=setenv bootargs console=${console},${baudrate} ${smp} root=/dev/nfs ip=d

hcp nfsroot=${serverip}:${nfsroot},v3,tcp

netboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then se

tenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${uimage}; if test $

{boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt

_file}; then bootm ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; th

en bootm; else echo WARN: Cannot load the DT; fi; fi; else bootm; fi;

netmask=255.255.255.0

panel=Hannstar-XGA

script=boot.scr

serverip=172.30.50.125

uimage=uImage

Environment size: 2419/8188 bytes

U-Boot >

I try to write the kernels again, when I have time today or tomorrow.

    uImage_imx_v7_defconfig

    uImage_imx_v7_mfg_defconfig

Kind regards

    Juergen

0 件の賞賛
返信
7,269件の閲覧回数
jaymind
Contributor IV

Hello Juergen,

Thanks for providing logs,

Can you please provide me the all arguments of u-boot? so it's easy to go forward.

printenv

I think so it will work, but after doing some correction.

some more arguments would be set,

setenv script boot.scr

setenv loadbootscript fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};

setenv bootcmd mmc dev ${mmcdev};mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; then run bootscript; else if run loaduimage; then run mmcboot; else run netboot; fi; fi; else run netboot; fi

setenv uimage boot/uImage

NOTE : important thing here to notice is that for setting uimage arguments give the correct path where your uImage lies on SD card. (i.e. here it is in boot directory - do not include ' / 'before directory)

so revert me back will u-boot environment and also result output after doing above changes.

Suggestion : If you don't want to save all these env in u-boot then just sets it to in u-boot and print to verify all, they set for the current console/season and automatically set default at next time start.(so its easy for testing purpose)

Thanks and Regards

Jaymin D

0 件の賞賛
返信
7,269件の閲覧回数
juergenvorbach
Contributor III

Hi Jaymin,

I have tried to set these values an received :

U-Boot > setenv script boot.scr

U-Boot > setenv loadbootscript fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${sc

ript};

U-Boot > setenv bootcmd mmc dev ${mmcdev};mmc dev ${mmcdev}; if mmc rescan; then

if run loadbootscript; then run bootscript; else if run loaduimage; then run mm

cboot; else run netboot; fi; fi; else run netboot; fi

mmc1 is current device

** Unrecognized filesystem type **

** Unrecognized filesystem type **

Booting from net ...

BOOTP broadcast 1

DHCP client bound to address 172.30.50.225

Using FEC device

TFTP from server 172.30.50.125; our IP address is 172.30.50.225

Filename 'uImage'.

Load address: 0x12000000

Loading: T T T

Abort

BOOTP broadcast 1

DHCP client bound to address 172.30.50.225

Using FEC device

TFTP from server 172.30.50.125; our IP address is 172.30.50.225

Filename 'imx6q-sabresd.dtb'.

Load address: 0x18000000

Loading: T T T T T T

Abort

Wrong Image Format for bootm command

ERROR: can't get kernel image!

U-Boot >


It started to boot from net.

I dont have anything running on 172.30.50.225, no tftp server or anything else.

- Why does it try to retrieve from xx.xx.xx.225, my serverip is set to xx.xx.xx.125?

I have done something more after reboot:

U-Boot > setenv uimage boot/uImage

U-Boot >

U-Boot >

U-Boot > bootm

## Booting kernel from Legacy Image at 12000000 ...

Bad Header Checksum

ERROR: can't get kernel image!

U-Boot >

So it might be the kernel image???

Kind regards

     Juergen

0 件の賞賛
返信
7,269件の閲覧回数
jaymind
Contributor IV

Hello,

Actually as per your old logs its shown that your loadaddr is loadaddr=0x12000000.

also be sure that your uimage lies at boot/uImage path. Is this correct ??

so also set it to loadaddr=0x80800000, it may be one of reason.

setenv loadaddr 0x80800000

also set some more below arguments.

However its set already or not just set it one more time.

setenv fdt_high 0xffffffff

setenv initrd_high 0xffffffff

setenv loadbootscript fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};

setenv loaduimage ext2load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}

setenv bootscript echo Running bootscript from mmc ...; source

I am not sure about FTP boot, it because of that it can't get loaduimage or loadbootscript or bootscript or mmcboot that's why it go to run netboot.

also set below argument at last.

mmcboot=echo Booting from mmc ...; run mmcargs; bootm

and please provide me u-boot environments all. (by use of 'printenv') after setting all above arguments.


Best luck

Jaymin D


0 件の賞賛
返信
7,269件の閲覧回数
juergenvorbach
Contributor III

U-Boot > setenv loadaddr 0x80800000

U-Boot > setenv fdt_high 0xffffffff

U-Boot > setenv initrd_high 0xffffffff

U-Boot > setenv loadbootscript fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};

U-Boot > setenv loaduimage ext2load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}

U-Boot > setenv bootscript echo Running bootscript from mmc ...; source

## Executing script at 12000000

Wrong image format for "source" command

U-Boot >

U-Boot > setenv mmcboot echo Booting from mmc ...; run mmcargs; bootm

Wrong Image Format for bootm command

ERROR: can't get kernel image!

U-Boot >

U-Boot > printenv

it hangs, nothing gets printed.

Another Try:


U-Boot > setenv loadaddr 0x80800000

U-Boot > setenv fdt_high 0xffffffff

U-Boot > setenv initrd_high 0xffffffff

U-Boot > setenv loadbootscript fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};

U-Boot > setenv loaduimage ext2load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}

U-Boot > setenv bootscript echo Running bootscript from mmc ...; source<INTERRUPT>

U-Boot > pri


U-Boot > pri

baudrate=115200

boot_fdt=try

bootargs=console=ttymxc0,115200 root=/dev/

bootargs_base=setenv bootargs console=ttymxc0,115200

bootargs_mmc=setenv bootargs ${bootargs} root=/dev/mmcblk0p1 rootwait rw video=m

xcfb1:dev=ldb,LDB-XGA,if=RGB666 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24

bootcmd=run bootcmd_mmc

bootcmd_mfg=run mfgtool_args;bootm ${loadaddr} ${initrd_addr} ${fdt_addr};

bootcmd_mmc=run bootargs_base bootargs_mmc;mmc dev 1;mmc read ${loadaddr} 0x800

0x3000;mmc read ${fdt_addr} 0x5000 0x800;bootm ${loadaddr} - ${fdt_addr}

bootdelay=1

bootscript=echo Running bootscript from mmc ...; source

console=ttymxc1

ethact=FEC

ethaddr=00:04:9f:02:6c:b5

ethprime=FEC

fdt_addr=0x18000000

fdt_file=imx6q-sabresd.dtb

fdt_high=0xffffffff

get_cmd=dhcp

initrd_addr=0x12C00000

initrd_high=0xffffffff

ip_dyn=yes

ipaddr=172.30.50.175

loadaddr=0x80800000

loadbootscript=fatload mmc 1:1 0x80800000

loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}

loaduimage=ext2load mmc 1:1 0x80800000

mfgtool_args=setenv bootargs console=ttymxc0,115200 rdinit=/linuxrc g_mass_stora

ge.stall=0 g_mass_storage.removable=1 g_mass_storage.idVendor=0x066F g_mass_stor

age.idProduct=0x37FF g_mass_storage.iSerialNumber="" enable_wait_mode=off

mmcargs=setenv bootargs console=ttymxc1,115200 consoleblank=0 root=/dev/mmcblk0p

1 rootwait rw video=mxcfb0:dev=ldb,LDB-XGA,if=RGB666

mmcboot=echo Booting from mmc ...; run mmcargs; if test ${boot_fdt} = yes || tes

t ${boot_fdt} = try; then if run loadfdt; then bootm ${loadaddr} - ${fdt_addr};

else if test ${boot_fdt} = try; then bootm; else echo WARN: Cannot load the DT;

fi; fi; else bootm; fi;

mmcdev=1

mmcpart=1

mmcroot=/dev/mmcblk0p1 rootwait rw

netargs=setenv bootargs console=${console},${baudrate} ${smp} root=/dev/nfs ip=d

hcp nfsroot=${serverip}:${nfsroot},v3,tcp

netboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then se

tenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${uimage}; if test $

{boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt

_file}; then bootm ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; th

en bootm; else echo WARN: Cannot load the DT; fi; fi; else bootm; fi;

netmask=255.255.255.0

panel=Hannstar-XGA

script=boot.scr

serverip=172.30.50.125

uimage=uImage

Environment size: 2363/8188 bytes

U-Boot > run bootcmd

mmc1 is current device

MMC read: dev # 1, block # 2048, count 12288 ...

it stops here

0 件の賞賛
返信
7,269件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Juergen

you can check below as possible reason

https://bugzilla.yoctoproject.org/show_bug.cgi?id=6703

Best regards

igor

0 件の賞賛
返信
7,269件の閲覧回数
juergenvorbach
Contributor III

Hi Igor,

thanks for your response.

The solution provided doesnt change anything in my case.

Disconnecting the hdmi cable or changing some values as described - still the same boot procedure 'till 'Starting kernel ..."

I keep trying, maybe I overread something.

thanx, kind regards

    Juergen

0 件の賞賛
返信
7,268件の閲覧回数
lategoodbye
Senior Contributor I

Hi Juergen,

are you sure that kernel stops booting or are there no more activity on the console?

May be that's the problem? how to set bootconsole on imx6 board

Stefan

0 件の賞賛
返信
7,269件の閲覧回数
juergenvorbach
Contributor III

Hi Stefan,

thanx for your response.

that is all I can see at the console when it stops at 'Starting kernel

...', so I think it never really starts to boot.

When I plug in my TFT via HDMI it runs into power save mode or if it

stays connected and I reset it stays in power save mode, just the same

behavior.

But when I boot the android kernel (r13.4) that is provided by freescale

- it runs, but I would like to use the yocto kernel.

kind regards

    Juergen

my env is:

U-Boot >

U-Boot > pri

baudrate=115200

boot_fdt=try

bootargs=console=ttymxc0,115200 root=/dev/

bootargs_base=setenv bootargs console=ttymxc0,115200

bootargs_mmc=setenv bootargs ${bootargs} root=/dev/mmcblk0p1 rootwait rw video=m

xcfb1:dev=ldb,LDB-XGA,if=RGB666 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24

bootcmd=run bootcmd_mmc

bootcmd_mfg=run mfgtool_args;bootm ${loadaddr} ${initrd_addr} ${fdt_addr};

bootcmd_mmc=run bootargs_base bootargs_mmc;mmc dev 1;mmc read ${loadaddr} 0x800

0x3000;mmc read ${fdt_addr} 0x5000 0x800;bootm ${loadaddr} - ${fdt_addr}

bootdelay=1

bootscript=echo Running bootscript from mmc ...; source

console=ttymxc0

ethact=FEC

ethaddr=00:04:9f:02:6c:b5

ethprime=FEC

fdt_addr=0x18000000

fdt_file=imx6q-sabresd.dtb

fdt_high=0xffffffff

get_cmd=dhcp

initrd_addr=0x12C00000

initrd_high=0xffffffff

ip_dyn=yes

ipaddr=172.30.50.175

loadaddr=0x12000000

loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};

loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}

loaduimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${uimage}

mfgtool_args=setenv bootargs console=ttymxc0,115200 rdinit=/linuxrc g_mass_stora

ge.stall=0 g_mass_storage.removable=1 g_mass_storage.idVendor=0x066F g_mass_stor

age.idProduct=0x37FF g_mass_storage.iSerialNumber="" enable_wait_mode=off

mmcargs=setenv bootargs console=${console},${baudrate} ${smp} root=${mmcroot}

mmcboot=echo Booting from mmc ...; run mmcargs; if test ${boot_fdt} = yes || tes

t ${boot_fdt} = try; then if run loadfdt; then bootm ${loadaddr} - ${fdt_addr};

else if test ${boot_fdt} = try; then bootm; else echo WARN: Cannot load the DT;

fi; fi; else bootm; fi;

mmcdev=1

mmcpart=1

mmcroot=/dev/mmcblk0p2 rootwait rw

netargs=setenv bootargs console=${console},${baudrate} ${smp} root=/dev/nfs ip=d

hcp nfsroot=${serverip}:${nfsroot},v3,tcp

netboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then se

tenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${uimage}; if test $

{boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt

_file}; then bootm ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; th

en bootm; else echo WARN: Cannot load the DT; fi; fi; else bootm; fi;

netmask=255.255.255.0

panel=Hannstar-XGA

script=boot.scr

serverip=172.30.50.125

uimage=uImage

Environment size: 2364/8188 bytes

U-Boot >

0 件の賞賛
返信
7,269件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Juergen,

you can try to set ip=none and

also one can try latest FSL Community BSP 1.7 (Dizzy)

O.S. Systems

~igor

0 件の賞賛
返信
7,269件の閲覧回数
juergenvorbach
Contributor III

Hi Igor,

thanx.

1st)

where should I set ip=none, in U-Boot?

2nd)

I have downloaded the BSP sources, did a repo sync, but that is all I

know to do.

I've done the following steps, downloaded repo and ...

  • PATH=$:~/bin

  • mkdir fsl-community-bsp

  • cd fsl-community-bsp

-b dizzy

  • repo sync

I am not that much into all the building process topic, thought I could

download a bunch of binaries and write it to a SD card. It wasn't my

intention to build it by myself - and I guess I don't have the

guidelines how to do all that.

Kind regards

Juergen

0 件の賞賛
返信
7,269件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Juergen,

yes in uboot (from your original text on this thread):

netargs=setenv bootargs console=${console},${baudrate} ${smp} root=/dev/nfs ip=d

hcp nfsroot=${serverip}:${nfsroot},v3,tcp

Best regards

igor

0 件の賞賛
返信
7,269件の閲覧回数
juergenvorbach
Contributor III

Hi Igor,

thanx first of all,

I tried:

netargs=setenv bootargs console=${console},${baudrate} ${smp} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp

netargs=setenv bootargs console=${console},${baudrate} ${smp} root=/dev/nfs ip=none nfsroot=${serverip}:${nfsroot},v3,tcp

and

netargs=setenv bootargs console=${console},${baudrate} ${smp} root=/dev/nfs ip=none

I reduced all down to

netargs=setenv bootargs console=${console},${baudrate}

netargs=setenv console=ttymxc0,115200

netargs=setenv console=ttymxc1,115200

all with the same behaviour, stops at 'Starting kernel ...'

i always use

$:> run bootcmd

to boot/restart

U-Boot > run bootcmd
mmc1 is current device

MMC read: dev # 1, block # 2048, count 12288 ... 12288 blocks read: OK

MMC read: dev # 1, block # 20480, count 2048 ... 2048 blocks read: OK
## Booting kernel from Legacy Image at 12000000 ...
    Image Name:   Linux-3.10.17-1.0.2_ga+g33597e3
    Image Type:   ARM Linux Kernel Image (uncompressed)
    Data Size:    5260744 Bytes = 5 MiB
    Load Address: 10008000
    Entry Point:  10008000
    Verifying Checksum ... OK
## Flattened Device Tree blob at 18000000
    Booting using the fdt blob at 0x18000000
    Loading Kernel Image ... OK
OK
switch to ldo_bypass mode!
    Using Device Tree in place at 18000000, end 1800ebac

Starting kernel ...

Kind regards

    Juergen

0 件の賞賛
返信
7,269件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Juergen,

what is about boot with ldo enabled, using

imx6q-sabresd-ldo.dtb

Best regards

igor

0 件の賞賛
返信