RE: [U-Boot-Users] How can I save zImage & fsimage.tar into Flash memory then boot

I am using diff-2.4.18-rmk7-pxa3 kernel. Could you tell me the complete command about mkimage that you type I am type mkimage -A arm -O linux -T kernel -C none -a 0xa0200000 -e 0xc0004000 -n zImage -d zImage bootm ---------------------------------------msg begin------------------------------------------------------------- Image Name: zImage Created: Wed Jul 2 01:44:06 2003 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 656752 Bytes = 641.36 kB = 0.63 MB Load Address: 0xa0200000 Entry Point: 0xc0004000 -----------------------------------------msg end------------------------------------------------------------- Is that correct?? Then I using bootm 0xa0200000 atfer I loadb The system is also crash... ----------------------------------------msg begin------------------------------------------------------------ $ loadb 0xa0200000 ## Ready for binary (kermit) download to 0xA0200000 at 115200 bps... ## Total Size = 0x000a05b0 = 656816 Bytes ## Start Addr = 0xA0200000 $ bootm 0xa0200000 ## Booting image at a0200000 ... Image Name: zImage Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 656752 Bytes = 641.4 kB Load Address: a0200000 Entry Point: c0004000 Verifying Checksum ... OK XIP Kernel Image ... OK
Starting kernel ...
prefetch abort pc : [<c0004004>] lr : [<a30128b4>] sp : a2f9fdf0 ip : 00000001 fp : 00000002 r10: a301c254 r9 : 0bb1c300 r8 : a2f9ffc4 r7 : a301c254 r6 : a0200040 r5 : 00000000 r4 : a0200040 r3 : c0004000 r2 : 00000001 r1 : 00000059 r0 : 00000000 Flags: nZCv IRQs off FIQs off Mode SVC_32 Resetting CPU ...
reseting ... ---------------------------------msg end---------------------------------------------- By the way, Could you tell me what kind of target board that you used? Your reply and support will be highly appreciated.
Thank you for your time and attention
Jacob Chan Jacob_chan@so-net.net.tw
-----Original Message----- From: Zhao Hongda [mailto:zhaohd@vis.cs.tsinghua.edu.cn] Sent: Tuesday, July 01, 2003 5:38 PM To: Jacob Chan Subject: Re: [U-Boot-Users] How can I save zImage & fsimage.tar into Flash memory then boot
the U-boot have mkimage in tools/ directory, I'm using 2.4.19-rmk7-pxa2 kernel, it can work fine with armboot, but always crash in u-boot, could you tell me which rmk and pxa patch you applied to 2.4.18 kernel? if you can have a workable u-boot Image, please let me know. Best regards. Hongda Zhao ----- Original Message ----- From: "Jacob Chan" jacob_chan@so-net.net.tw To: "'Zhao Hongda'" zhaohd@vis.cs.tsinghua.edu.cn Sent: Tuesday, July 01, 2003 5:30 PM Subject: RE: [U-Boot-Users] How can I save zImage & fsimage.tar into Flash memory then boot
I am using Linux Kernel 2.4.18 with xscale pxa patch By the way, Could you tell me where to download mkimage tool Your reply and support will be highly appreciated.
Thank you for your time and attention
Jacob Chan Jacob_chan@so-net.net.tw
-----Original Message----- From: u-boot-users-admin@lists.sourceforge.net [mailto:u-boot-users-admin@lists.sourceforge.net] On Behalf Of Zhao Hongda Sent: Tuesday, July 01, 2003 5:00 PM To: u-boot-users@lists.sourceforge.net Subject: Re: [U-Boot-Users] How can I save zImage & fsimage.tar into Flash memory then boot
Could you tell me which kernel version is used? I'm try to use mkimage to create a flash-image that can be used by bootm, but until now I'm failed. Hongda Zhao ----- Original Message ----- From: "Jacob Chan" jacob_chan@so-net.net.tw To: "u-boot" u-boot-users@lists.sourceforge.net Sent: Tuesday, July 01, 2003 4:26 PM Subject: [U-Boot-Users] How can I save zImage & fsimage.tar into Flash memory then boot
Dear all, I am using the Intel DBPXA255 Lubbock board. After I download the u-boot.bin via JTAG that using BDI2000. It can boot but the Ethernet device(SMSC LAN91C96) is not work. So I using serial download(Kermit mode) zImage to the address 0xa0200000. loadb 0xa0200000 <-- using HyperTerminal Kermit mode to download After that I can using go 0xa0200000 to boot linux kernel, but how
can
I
save it to Flash? I try cp 0xa0200000 0x00080000 0x000a0578 After that I reboot the target board and how can I boot the linux kernel? I use bootm 0x00080000, but it's not work. Finally, I wan to save u-boot.bin, zImage and filesystem.tar into
Flash
then boot. What should I need to do? Your reply and support will be highly appreciated.
Thank you for your time and attention
Jacob Chan Jacob_chan@so-net.net.tw
This SF.Net email sponsored by: Free pre-built ASP.NET sites
including
Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users

On Tuesday 01 July 2003 06:02 am, Jacob Chan wrote:
I am using diff-2.4.18-rmk7-pxa3 kernel. Could you tell me the complete command about mkimage that you type I am type mkimage -A arm -O linux -T kernel -C none -a 0xa0200000 -e 0xc0004000 -n zImage -d zImage bootm
I think this has been discussed on this mailing list before.
Here is the procedure I use for creating a bootable image for PXA.
arm-linux-objcopy -S -O binary vmlinux linux gzip -vf9 linux mkimage -n kernel_name -A arm -O linux -T kernel -C gzip -a a0008000 \ -e a0008000 -d linux.gz linuxgz.image
I then copy this in to flash at 0x40000 and boot with "bootm 40000". Since I use a mtd device as the rootfs there is only a single arg to the bootm command.
HTH, Kyle.

After do such steps, I try to "bootm 0x40000", but the kernel hangs: ## Booting image at 00040000 ... Image name: 2.4.18 kernel Image Type: ARM Linux kernel Image (gzip compressed) Data Size: 714025 Bytes =697.3kB Load Address: a0008000 Entry Point: a0008000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK Starting kernel... (hangs) why? should I change some envs? Hongda Zhao ----- Original Message ----- From: "Kyle Harris" kharris@nexus-tech.net To: "Jacob Chan" jacob_chan@so-net.net.tw; "'Zhao Hongda'" zhaohd@vis.cs.tsinghua.edu.cn Cc: "u-boot" u-boot-users@lists.sourceforge.net Sent: Tuesday, July 01, 2003 8:20 PM Subject: Re: [U-Boot-Users] How can I save zImage & fsimage.tar into Flash memory then boot
On Tuesday 01 July 2003 06:02 am, Jacob Chan wrote:
I am using diff-2.4.18-rmk7-pxa3 kernel. Could you tell me the complete command about mkimage that you type I am type mkimage -A arm -O linux -T kernel -C none -a 0xa0200000 -e 0xc0004000 -n zImage -d zImage bootm
I think this has been discussed on this mailing list before.
Here is the procedure I use for creating a bootable image for PXA.
arm-linux-objcopy -S -O binary vmlinux linux gzip -vf9 linux mkimage -n kernel_name -A arm -O linux -T kernel -C gzip -a a0008000 \ -e a0008000 -d linux.gz linuxgz.image
I then copy this in to flash at 0x40000 and boot with "bootm 40000". Since
I
use a mtd device as the rootfs there is only a single arg to the bootm command.
HTH, Kyle.

On Tuesday 01 July 2003 08:50 am, Zhao Hongda wrote:
After do such steps, I try to "bootm 0x40000", but the kernel hangs: ## Booting image at 00040000 ... Image name: 2.4.18 kernel Image Type: ARM Linux kernel Image (gzip compressed) Data Size: 714025 Bytes =697.3kB Load Address: a0008000 Entry Point: a0008000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK Starting kernel... (hangs)
What are your bootargs? Make sure the console is configured correctly.
console=ttyS0,115200

my kernel config is (arch/arm/def-configs/lubbock): ... CONFIG_CMDLINE="root=/dev/nfs ip=bootp console=ttyS0,115200" ... my u-boot env config is: ... bootargs=root=/dev/nfs ip=bootp console=ttyS0,115200 ... stdin=serial stdout=serial stderr=serial ...
is it right? Hongda zhao ----- Original Message ----- From: "Kyle Harris" kharris@nexus-tech.net To: "Zhao Hongda" zhaohd@vis.cs.tsinghua.edu.cn; u-boot-users@lists.sourceforge.net Sent: Tuesday, July 01, 2003 9:14 PM Subject: Re: [U-Boot-Users] How can I save zImage & fsimage.tar into Flash memory then boot
On Tuesday 01 July 2003 08:50 am, Zhao Hongda wrote:
After do such steps, I try to "bootm 0x40000", but the kernel hangs: ## Booting image at 00040000 ... Image name: 2.4.18 kernel Image Type: ARM Linux kernel Image (gzip compressed) Data Size: 714025 Bytes =697.3kB Load Address: a0008000 Entry Point: a0008000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK Starting kernel... (hangs)
What are your bootargs? Make sure the console is configured correctly.
console=ttyS0,115200
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
participants (3)
-
Jacob Chan
-
Kyle Harris
-
Zhao Hongda