LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-30-2015, 12:59 AM   #1
poplinux
Member
 
Registered: May 2012
Posts: 111

Rep: Reputation: Disabled
[u-boot] How to merge kernel + rootfs + dts to 1 file?


Dear Sir.

Every time thanks your advise.

I have a 3 file. see below

1. kernel image(zImage)
2. rootfs image(initrd)
3. DTB file

I'm want to merge this 3 files to 1 image file. that use mkimage utility.

I'm already know "how to use mkimage". my command see below

Code:
mkimage -A arm -T kernel -C none -a 0x20100000 -e 0x20100000 -n "my image" -d zImage rootfs.initrd my.dtb myimage.bin
And. I'm use the "bootm" command on u-boot(Ver 2015.01)

Code:
U-boot > tftp 0x22000000 myimage.bin
U-boot > bootm 0x22000000
But u-boot can't found rootfs.initrd and myimage.dtb in myimage.bin


Please advise to me.



PS1. I'm already success boot. But not merge 3 file to 1 file.
Code:
tftp 0x21000000 zImage
tftp 0x22000000 rootfs.initrd
tftp 0x23000000 my.dtb

U-boot > bootm 0x21000000 0x22000000 0x23000000
So, each image is correct for U-boot.

PS2. Another case. can't boot
Code:
 cat zImage my.dtb > tmp
 mkimage -A arm -T kernel -C none -a 0x20100000 -e 0x20100000 \
    -n "My image" \
    -d tmp my.image
Code:
U-boot > tftp 0x21000000 my.image
U-boot > bootm 0x21000000
## Booting kernel from Legacy Image at 21000000 ...
   Image Name:   My image
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1515761 Bytes = 1.4 MiB
   Load Address: 20100000
   Entry Point:  20100000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
FDT and ATAGS support not compiled in - hanging
### ERROR ### Please RESET the board ###

Last edited by poplinux; 06-30-2015 at 01:10 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
building a slimfit kernel and rootfs Robut Linux - Newbie 1 01-27-2013 05:56 PM
How to extract DTS core from DTS-HD MA? earthw0rmjim Linux - Software 0 09-06-2012 01:24 PM
LXer: Finding rootfs during boot LXer Syndicated Linux News 0 03-12-2009 10:10 PM
Linux Boot CD problem with rootfs.gz xokaido Linux - General 4 12-30-2008 05:25 AM
Merge many files in to one big file. like 20 file merge in one big file Jmor Linux - Newbie 2 10-29-2008 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration