Re: [U-Boot] working with loadb & bootm on u-boot-v2 for imx27ads Board
Hi All, I am successfully able to get the U-boot prompt on my board based on IMX27ads. However I am facing the following issue. Please help me out : I want to load the Linux Kernel Zimage on to RAM. As per the documentation we have used the following command to load zImage using Kermit protocol. " U-boot-v2> loadb -c zImage " (Also tried " U-boot-v2> loadb -f zImage ") Which successfully downloads zimage to the file with default offset set as 0x. a) But I am not able to understand to which location in RAM this image is written to? b) Please let me know how exactly to load kernel image to specific location on RAM? c) Also how we can change the default location since the user is not given an option to mention the address. d) How to load the file " zImage" to RAM? I was intending to do the following steps : >> loadb 0x10 zimage >> loadb 0x100 ramdisk.gz >> bootm 0x10 0x100 Please help me out as I am using U-boot-V2 for the first time. I am attaching the loadb.c file which I am using currently. Are there any patches Waiting for your responses. Thanks, Lejin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lejin K Joy Sent: Tuesday, September 23, 2008 9:49 PM To: 'Robert Schwebel'; 'Sascha Hauer' Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] u-boot-v2 for imx27 Board Hi, I was running U-boot-v2 on imx27ads board and it's hanging up on the terminal after the following display. U-Boot 2.0.0-rc5-git (Sep 22 2008 - 23:05:39) Board: Freescale i.MX27 ADS - Also I am using Intel P30 strata flash. When the MTD cfi driver is enabled in the menuconfig U-boot gives the following message and hangs up. U-Boot 2.0.0-rc5-git (Sep 22 2008 - 23:05:39) Board: Freescale i.MX27 ADS cfi_probe: cfi_flash base: 0xc000 size: 0x0200 Please provide your suggestions. Thanks, Lejin -Original Message- From: Robert Schwebel [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2008 12:17 AM To: Lejin K Joy Cc: 'Sascha Hauer'; u-boot@lists.denx.de Subject: Re: [U-Boot] u-boot for imx27 Board Hi, On Thu, Aug 21, 2008 at 09:43:53PM +0530, Lejin K Joy wrote: > Could you kindly suggest me the arm cross compiler's link /name using > which you have compiled the u-boot. I am using > obsolete-gcc-3.3.2.tar.bz2 compiler. We usually build the MX27 stuff with a generic arm-v4 cross toolchain, built with OSELAS.Toolchain-1.1.1. You can compile such a toolchain yourself easily with ptxdist, look here for the details: http://www.pengutronix.de/oselas/toolchain/index_en.html rsc -- Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de Pengutronix - Linux Solutions for Science and Industry Handelsregister: Amtsgericht Hildesheim, HRA 2686 Hannoversche Str. 2, 31134 Hildesheim, Germany Phone: +49-5121-206917-0 | Fax: +49-5121-206917-9 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] working with loadb & bootm on u-boot-v2 for imx27ads Board
Lejin K Joy said the following on 09/25/2008 05:06 AM: > I want to load the Linux Kernel Zimage on to RAM. As per the documentation > we have used the following command to load zImage using Kermit protocol. > > " U-boot-v2> loadb -c zImage " > > (Also tried " U-boot-v2> loadb -f zImage ") > > Which successfully downloads zimage to the file with default offset set as > 0x. > U-Boot V2 uses a filesystem. when you did loadb -c -f zImage, it downloaded the image to the file called zImage. zImage is stored within the ramfs filesystem. (the concepts are very similar to an OS with restrictions). This is slightly different from what you want to achieve I think. > a) But I am not able to understand to which location in RAM this image is > written to? b) Please let me know how exactly to load kernel image to > specific location on RAM? > Look for the device node which shows the RAM/NOR/NAND you need. this might be /dev/mem or (in my OMAP3430 case) /dev/ram0 - also see "help loadb". Loadb takes the following options: -f file - where to download to -o offset - what offset to download - defaults to 0 -b baud - baudrate at which to download - defaults to console baudrate -c - Create file if it is not present - default disabled In your case, lets say: your ram starts at 0x8000 and is denoted by /dev/ram0. If you want to download to offset 0x3000 in ram, you can do loadb -f /dev/ram0 -o 0x3000. this will essentially download to 0x80003000. + you now have the flexibility of downloading straight to NOR, NAND or to even a file within u-boot v2's ramfs!! - so you can store and share commonly used scripts modules etc.. tons of similar flexibility exists. > c) Also how we can change the default location since the user is not given > an option to mention the address. > as explained above. > d) How to load the file " zImage" to RAM? > if you want to copy a file from ramfs to a "specific location" just do the cp command! > I was intending to do the following steps : > > >> loadb 0x10 zimage > >> loadb 0x100 ramdisk.gz > >> bootm 0x10 0x100 > > Please help me out as I am using U-boot-V2 for the first time. > Does the above explanation help? in u-boot-v2, you can infact run "help " or do a make docs And if you have graphviz latex etc installed, you will get a html documentation in Documentation/html. Note: I created a few useful platform independent tools for U-boot (should work for both U-boot v2 and V1). they are available in [1]. > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Lejin K Joy > Sent: Tuesday, September 23, 2008 9:49 PM > To: 'Robert Schwebel'; 'Sascha Hauer' > Cc: u-boot@lists.denx.de > Subject: Re: [U-Boot] u-boot-v2 for imx27 Board > Try not to top post. see [2] and mailing list ettiquette. Regards, Nishanth Menon [1] http://code.google.com/p/omap-u-boot-utils/ [2] http://en.wikipedia.org/wiki/Posting_style ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] working with loadb & bootm on u-boot-v2 for imx27ads Board
-Original Message- From: Nishanth Menon [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2008 4:33 PM To: Lejin K Joy Cc: 'Robert Schwebel'; 'Sascha Hauer'; [EMAIL PROTECTED]; u-boot@lists.denx.de Subject: Re: [U-Boot]working with loadb & bootm on u-boot-v2 for imx27ads Board Lejin K Joy said the following on 09/25/2008 05:06 AM: > I want to load the Linux Kernel Zimage on to RAM. As per the documentation > we have used the following command to load zImage using Kermit protocol. > > " U-boot-v2> loadb -c zImage " > > (Also tried " U-boot-v2> loadb -f zImage ") > > Which successfully downloads zimage to the file with default offset set as > 0x. > U-Boot V2 uses a filesystem. when you did loadb -c -f zImage, it downloaded the image to the file called zImage. zImage is stored within the ramfs filesystem. (the concepts are very similar to an OS with restrictions). This is slightly different from what you want to achieve I think. > a) But I am not able to understand to which location in RAM this image is > written to? b) Please let me know how exactly to load kernel image to > specific location on RAM? > Look for the device node which shows the RAM/NOR/NAND you need. this might be /dev/mem or (in my OMAP3430 case) /dev/ram0 - also see "help loadb". Loadb takes the following options: -f file - where to download to -o offset - what offset to download - defaults to 0 -b baud - baudrate at which to download - defaults to console baudrate -c - Create file if it is not present - default disabled In your case, lets say: your ram starts at 0x8000 and is denoted by /dev/ram0. If you want to download to offset 0x3000 in ram, you can do loadb -f /dev/ram0 -o 0x3000. this will essentially download to 0x80003000. + you now have the flexibility of downloading straight to NOR, NAND or to even a file within u-boot v2's ramfs!! - so you can store and share commonly used scripts modules etc.. tons of similar flexibility exists. > c) Also how we can change the default location since the user is not given > an option to mention the address. > as explained above. > d) How to load the file " zImage" to RAM? > if you want to copy a file from ramfs to a "specific location" just do the cp command! > I was intending to do the following steps : > > >> loadb 0x10 zimage > >> loadb 0x100 ramdisk.gz > >> bootm 0x10 0x100 > > Please help me out as I am using U-boot-V2 for the first time. > Does the above explanation help? in u-boot-v2, you can infact run "help " or do a make docs And if you have graphviz latex etc installed, you will get a html documentation in Documentation/html. Note: I created a few useful platform independent tools for U-boot (should work for both U-boot v2 and V1). they are available in [1]. > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Lejin K Joy > Sent: Tuesday, September 23, 2008 9:49 PM > To: 'Robert Schwebel'; 'Sascha Hauer' > Cc: u-boot@lists.denx.de > Subject: Re: [U-Boot] u-boot-v2 for imx27 Board > Try not to top post. see [2] and mailing list ettiquette. Regards, Nishanth Menon [1] http://code.google.com/p/omap-u-boot-utils/ [2] http://en.wikipedia.org/wiki/Posting_style Hi Nishanth, Thanks for your inputs. Still I am one step behind. I was successfully able to download the Zimage by following command; but I am failing at the command to execute the image loaded to RAM which has base address 0xc000. The "go" command displays "## Starting application at 0xA010 ..." and hang up. --- uboot:/ loadb -f /dev/ram0 -o 0x10 ## Ready for binary (kermit) download to 0x0010 offset on /dev/ram0 device a t 115200 bps... ## Total Size = 0x0014deb9 = 1367737 Bytes uboot:/ go 0xa010 ## Starting application at 0xA010 ... --- Please find the detailed boot log below : I cant correctly execute the the "bootm" command as well. Please guide : U-Boot 2.0.0-rc5-git (Sep 25 2008 - 16:57:32) Board: Freescale i.MX27 ADS mpll: 265999329 Hz spll: 23725 Hz arm: 177332886 Hz perclk1:8866644 Hz perclk2: 17733288 Hz perclk3: 44333221 Hz perclk4: 17733288 Hz clkin26: 2600 Hz ahb: 44333221 Hz ipg: 22166610 Hz Stack space : 0xa7af8000 -> 0xa7b0 (size 32 kB) Open /dev/env0 No such file or directory no valid environment found on /dev/env0. Using default environment running /env/bin/init... set parameter: No such device set parameter: No such device set parameter: No such device set parameter: No such device no such device: /dev/nor
Re: [U-Boot] working with loadb & bootm on u-boot-v2 for imx27ads Board
On Thu, Sep 25, 2008 at 8:04 AM, Lejin K Joy <[EMAIL PROTECTED]> wrote: > > --- > uboot:/ loadb -f /dev/ram0 -o 0x10 Do you have /dev/ram0? is it mapped to 0xa000? there could be issues with mach-types.. I am not sure though.. I am not entirely sure about imx boot procedure(I am an OMAP guy ;) )..but it could be uImage you need there? I am not too sure.. does the piggy relocate the kernel? I am not too sure.. probably the kernel details would help.. > ## Ready for binary (kermit) download to 0x0010 offset on /dev/ram0 > device a > t 115200 bps... > ## Total Size = 0x0014deb9 = 1367737 Bytes > > uboot:/ go 0xa010 Should'nt this be bootm 0xa010? Regards, Nishanth Menon ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] working with loadb & bootm on u-boot-v2 for imx27ads Board
-Original Message- From: Nishanth Menon [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2008 7:07 PM To: Lejin K Joy Cc: Robert Schwebel; Sascha Hauer; [EMAIL PROTECTED]; u-boot@lists.denx.de Subject: Re: [U-Boot] working with loadb & bootm on u-boot-v2 for imx27ads Board On Thu, Sep 25, 2008 at 8:04 AM, Lejin K Joy <[EMAIL PROTECTED]> wrote: > > --- > uboot:/ loadb -f /dev/ram0 -o 0x10 Do you have /dev/ram0? is it mapped to 0xa000? there could be issues with mach-types.. I am not sure though.. I am not entirely sure about imx boot procedure(I am an OMAP guy ;) )..but it could be uImage you need there? I am not too sure.. does the piggy relocate the kernel? I am not too sure.. probably the kernel details would help.. > ## Ready for binary (kermit) download to 0x0010 offset on /dev/ram0 > device a > t 115200 bps... > ## Total Size = 0x0014deb9 = 1367737 Bytes > > uboot:/ go 0xa010 Should'nt this be bootm 0xa010? Regards, Nishanth Menon - Hi All, The " bootm 0xa010" option is not helping It's displaying "could not open : No Such file or directory" And the help says the option is bootm [option] image. But nothing helps. The image being tried is getting loaded on the same board when board is flashed with redboot using the following commands. 1) load -r -b 0x10 -m xmodem zimage 2) load -v -r -b 0x0100 -m xmodem ramdisk.gz 3) exec -r 0x00100 -s 0x0060 -b 0x10 -l 0x0020 -c "init=/linuxrc console=ttymxc0,115200 root=/dev/ram" If any suggestions, please share..!! Thanks, Lejin ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] working with loadb & bootm on u-boot-v2 for imx27ads Board
-Original Message- From: Nishanth Menon [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2008 7:07 PM To: Lejin K Joy Cc: Robert Schwebel; Sascha Hauer; [EMAIL PROTECTED]; u-boot@lists.denx.de Subject: Re: [U-Boot] working with loadb & bootm on u-boot-v2 for imx27ads Board On Thu, Sep 25, 2008 at 8:04 AM, Lejin K Joy <[EMAIL PROTECTED]> wrote: > > --- > uboot:/ loadb -f /dev/ram0 -o 0x10 Do you have /dev/ram0? is it mapped to 0xa000? there could be issues with mach-types.. I am not sure though.. I am not entirely sure about imx boot procedure(I am an OMAP guy ;) )..but it could be uImage you need there? I am not too sure.. does the piggy relocate the kernel? I am not too sure.. probably the kernel details would help.. > ## Ready for binary (kermit) download to 0x0010 offset on /dev/ram0 > device a > t 115200 bps... > ## Total Size = 0x0014deb9 = 1367737 Bytes > > uboot:/ go 0xa010 Should'nt this be bootm 0xa010? Regards, Nishanth Menon - Hi All, The " bootm 0xa010" option is not helping It's displaying "could not open : No Such file or directory" And the help says the option is bootm [option] image. But nothing helps. The image being tried is getting loaded on the same board when board is flashed with redboot using the following commands. 1) load -r -b 0x10 -m xmodem zimage 2) load -v -r -b 0x0100 -m xmodem ramdisk.gz 3) exec -r 0x00100 -s 0x0060 -b 0x10 -l 0x0020 -c "init=/linuxrc console=ttymxc0,115200 root=/dev/ram" If any suggestions, please share..!! Thanks, Lejin ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] working with loadb & bootm on u-boot-v2 for imx27ads Board
> - > > Hi All, > > loadb -f /dev/ram0 -o 0x10 adn then > the " bootm 0xa010" option is not helping It's displaying "could > not open : No Such file or directory" And the help says the option is bootm > [option] image. But nothing helps. > > The image being tried is getting loaded on the same board when board is > flashed with redboot using the following commands. > > 1) load -r -b 0x10 -m xmodem zimage > 2) load -v -r -b 0x0100 -m xmodem ramdisk.gz > 3) exec -r 0x00100 -s 0x0060 -b 0x10 -l 0x0020 -c > "init=/linuxrc console=ttymxc0,115200 root=/dev/ram" > > If any suggestions, please share..!! > > Thanks, > Lejin > --- Hi All, If anybody has tried with the bootm option for executing the Linux ZImage already loaded on RAM, on u-boot-v2 Please provide your suggestions. Thanks, Lejin ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] working with loadb & bootm on u-boot-v2 for imx27ads Board
-Original Message- From: Nishanth Menon [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2008 4:33 PM To: Lejin K Joy Cc: 'Robert Schwebel'; 'Sascha Hauer'; [EMAIL PROTECTED]; u-boot@lists.denx.de Subject: Re: [U-Boot]working with loadb & bootm on u-boot-v2 for imx27ads Board Lejin K Joy said the following on 09/25/2008 05:06 AM: > I want to load the Linux Kernel Zimage on to RAM. As per the documentation > we have used the following command to load zImage using Kermit protocol. > > " U-boot-v2> loadb -c zImage " > > (Also tried " U-boot-v2> loadb -f zImage ") > > Which successfully downloads zimage to the file with default offset set as > 0x. > U-Boot V2 uses a filesystem. when you did loadb -c -f zImage, it downloaded the image to the file called zImage. zImage is stored within the ramfs filesystem. (the concepts are very similar to an OS with restrictions). This is slightly different from what you want to achieve I think. > a) But I am not able to understand to which location in RAM this image is > written to? b) Please let me know how exactly to load kernel image to > specific location on RAM? > Look for the device node which shows the RAM/NOR/NAND you need. this might be /dev/mem or (in my OMAP3430 case) /dev/ram0 - also see "help loadb". Loadb takes the following options: -f file - where to download to -o offset - what offset to download - defaults to 0 -b baud - baudrate at which to download - defaults to console baudrate -c - Create file if it is not present - default disabled In your case, lets say: your ram starts at 0x8000 and is denoted by /dev/ram0. If you want to download to offset 0x3000 in ram, you can do loadb -f /dev/ram0 -o 0x3000. this will essentially download to 0x80003000. + you now have the flexibility of downloading straight to NOR, NAND or to even a file within u-boot v2's ramfs!! - so you can store and share commonly used scripts modules etc.. tons of similar flexibility exists. > c) Also how we can change the default location since the user is not given > an option to mention the address. > as explained above. > d) How to load the file " zImage" to RAM? > if you want to copy a file from ramfs to a "specific location" just do the cp command! > I was intending to do the following steps : > > >> loadb 0x10 zimage > >> loadb 0x100 ramdisk.gz > >> bootm 0x10 0x100 > > Please help me out as I am using U-boot-V2 for the first time. > Does the above explanation help? in u-boot-v2, you can infact run "help " or do a make docs And if you have graphviz latex etc installed, you will get a html documentation in Documentation/html. Note: I created a few useful platform independent tools for U-boot (should work for both U-boot v2 and V1). they are available in [1]. > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Lejin K Joy > Sent: Tuesday, September 23, 2008 9:49 PM > To: 'Robert Schwebel'; 'Sascha Hauer' > Cc: u-boot@lists.denx.de > Subject: Re: [U-Boot] u-boot-v2 for imx27 Board > Try not to top post. see [2] and mailing list ettiquette. Regards, Nishanth Menon [1] http://code.google.com/p/omap-u-boot-utils/ [2] http://en.wikipedia.org/wiki/Posting_style - Hi, I am working on freescale IMX-27ADS board using U-boot-v2 bootloader and linux-2.6.25-rc7 source.I have downloaded U-boot-V2 bootloader into the board.Now i am trying to boot linux-2.6.25 kernel on this board. I am using gcc-4.1.2-glibc-2.5-nptl-3 cross compiler toolchain to build uboot.bin and uImage. We are using the below procedures to build uImage from linux souce. 1. ARCH=arm CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-l inux-gnueabi/bin/arm-none-linux-gnueabi- make clean 2.ARCH=arm CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-l inux-gnueabi/bin/arm-none-linux-gnueabi- make menuconfig 3.ARCH=arm CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-l inux-gnueabi/bin/arm-none-linux-gnueabi- make 4.arm-none-linux-gnueabi-objcopy -o binary -R .note -R .comment -S vmlinux linux.bin 5.gzip -9 linux.bin 6.mkimage -A arm -O linux -T kernel -C none -a 0xa100 -e 0xa100 -n "linux-2.6.25" -d linux.bin.gz uImage We are loading uImage to IMX27ADS in kermit mode. We are trying to boot kernel using bootm command but the kernel got stuck in starting kernel memory location. Please find the logfile attachment. We are laoding uImage on target using the following commands. 1. loadb -f /dev/ram0 -o 0x100 uImage 2. bootm /dev/ram0 Please suggest me where i am going wrong. It will be a great help.