Not able to boot from bootm command

73 views
Skip to first unread message

Vinay Hasyagar

unread,
May 20, 2020, 9:35:33 AM5/20/20
to BeagleBoard
Hi,


I am using BBBW for learning Embedded Linux. I have taken an online course in which BBB is being used. Also, they are using Angstrom distribution of Linux. Since I did not get Angstrom distribution for BBBW I am using Debian 10.3 version from Beagleboard.ord. I am able to boot the board successfully from this. But my question is, when I enter into U-boot login page by terminating auto boot, I should be able to load kernel image at a specific address of DDR3. But I am facing issue with this. I execute below commands to load the kernel Image

load mmc 1:1 0x82000000 /boot/vmlinuz-4.19.94.ti-r42

where mmc is mmc interface
           1 dev number (here I am using booting from eMMC i.e, MMC1)
           1 is partition number. Since its debian ,eMMC has only one partition i.e, rootfs
           /boot/vmlinuz-4.19.94.ti-r42 is image name which is present inside /boot/ folder

This command executes successfully. It shows some 10590617 bytes read which is the size of kernel image. But when I execute next command as below then I get error.
           bootm 0x82000000 
it gives Wrong Image format, Can't get kernel Image.
Please help me with this. I tried with the address 0x80000000. But no success, same error.

Note: If you are using BBB and Angstrom distribution, then load command will be "load mmc 1:2 0x82000000 /boot/uImage". This is given in online course. For them its working

Thank you
 

Robert Nelson

unread,
May 20, 2020, 9:41:42 AM5/20/20
to Beagle Board, vinayf...@gmail.com
On Wed, May 20, 2020 at 8:35 AM Vinay Hasyagar <vinayf...@gmail.com> wrote:
>
> Hi,
>
>
> I am using BBBW for learning Embedded Linux. I have taken an online course in which BBB is being used. Also, they are using Angstrom distribution of Linux. Since I did not get Angstrom distribution for BBBW I am using Debian 10.3 version from Beagleboard.ord. I am able to boot the board successfully from this. But my question is, when I enter into U-boot login page by terminating auto boot, I should be able to load kernel image at a specific address of DDR3. But I am facing issue with this. I execute below commands to load the kernel Image
>
> load mmc 1:1 0x82000000 /boot/vmlinuz-4.19.94.ti-r42
>
> where mmc is mmc interface
> 1 dev number (here I am using booting from eMMC i.e, MMC1)
> 1 is partition number. Since its debian ,eMMC has only one partition i.e, rootfs
> /boot/vmlinuz-4.19.94.ti-r42 is image name which is present inside /boot/ folder
>
> This command executes successfully. It shows some 10590617 bytes read which is the size of kernel image. But when I execute next command as below then I get error.
> bootm 0x82000000
> it gives Wrong Image format, Can't get kernel Image.

That is correct, "bootm" would be the wrong loader for "/boot/vmlinuz*"

bootm requires an file with a u-boot wrapper around it. (created by
u-boot's mkimage tool)..

Use "bootz" for a raw "/boot/vmlinuz*" file instead of "bootm"..

> Please help me with this. I tried with the address 0x80000000. But no success, same error.
>
> Note: If you are using BBB and Angstrom distribution, then load command will be "load mmc 1:2 0x82000000 /boot/uImage". This is given in online course. For them its working

Regards,

--
Robert Nelson
https://rcn-ee.com/

Vinay Hasyagar

unread,
May 21, 2020, 9:41:48 AM5/21/20
to BeagleBoard
Hi Robert,

Thank you for your reply.  

>Use "bootz" for a raw "/boot/vmlinuz*" file instead of "bootm"..

The above solution helped  me and it worked.

Thank you 
Reply all
Reply to author
Forward
0 new messages