Re: [U-Boot-Users] Loading a kernel on MX31ADS using U-boot

2008-05-15 Thread Jens Gehrlein
Hi Fabio,

Fabio Estevam schrieb:
 Hi Jens,
 
 Have you tried to pass the jtag=on option into the kernel command line?

Yippee! This works.
Thank you very much for this hint!
Where is this parameter documented? I didn't found anything in 
linux/Documentation or with google.

...

 Apart from that, verify that your console=
 command line parameter is correct, your machine ID
 matches, and that you 
 don't have a jtag debugger like bdi2000 connected
 when you're trying to 
 boot.
 I have the same problem on our board: I don't see the
 console outputs if 
 the BDI2000 cable is connected to the target, although the
 BDI is in 
 mode reset run. Do have an idea why?


Best Regards,
Jens

-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Loading a kernel on MX31ADS using U-boot

2008-05-15 Thread Fabio Estevam
--- On Thu, 5/15/08, Jens Gehrlein [EMAIL PROTECTED] wrote:


 Yippee! This works.
 Thank you very much for this hint!
 Where is this parameter documented? I didn't found
 anything in 
 linux/Documentation or with google.

Yes, this is a Freescale specific option as part of the BSP for mainly 
debugging purpose.

Regards,

Fabio Estevam


  

-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Loading a kernel on MX31ADS using U-boot

2008-05-14 Thread Jens Gehrlein
Hi Guennadi,

Guennadi Liakhovetski schrieb:

...

Apart from that, verify that your console=
 command line parameter is correct, your machine ID matches, and that you 
 don't have a jtag debugger like bdi2000 connected when you're trying to 
 boot.

I have the same problem on our board: I don't see the console outputs if 
the BDI2000 cable is connected to the target, although the BDI is in 
mode reset run. Do have an idea why?

Best Regards,
Jens


-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Loading a kernel on MX31ADS using U-boot

2008-05-14 Thread Guennadi Liakhovetski
On Wed, 14 May 2008, Jens Gehrlein wrote:

 Apart from that, verify that your console=
  command line parameter is correct, your machine ID matches, and that you
  don't have a jtag debugger like bdi2000 connected when you're trying to
  boot.
 
 I have the same problem on our board: I don't see the console outputs if the
 BDI2000 cable is connected to the target, although the BDI is in mode reset
 run. Do have an idea why?

No, I don't know why, but that's exactly why I've mentioned it above - I 
had the same problem here and I spent about half a day trying to figure 
out why it didn't boot.

Thanks
Guennadi
---
Guennadi Liakhovetski

-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Loading a kernel on MX31ADS using U-boot

2008-05-14 Thread Fabio Estevam
Hi Jens,

Have you tried to pass the jtag=on option into the kernel command line?

Regards,

Fabio Estevam

--- On Wed, 5/14/08, Jens Gehrlein [EMAIL PROTECTED] wrote:

 From: Jens Gehrlein [EMAIL PROTECTED]
 Subject: Re: [U-Boot-Users] Loading a kernel on MX31ADS using U-boot
 To: Guennadi Liakhovetski [EMAIL PROTECTED]
 Cc: u-boot-users@lists.sourceforge.net
 Date: Wednesday, May 14, 2008, 4:08 AM
 Hi Guennadi,
 
 Guennadi Liakhovetski schrieb:
 
 ...
 
 Apart from that, verify that your console=
  command line parameter is correct, your machine ID
 matches, and that you 
  don't have a jtag debugger like bdi2000 connected
 when you're trying to 
  boot.
 
 I have the same problem on our board: I don't see the
 console outputs if 
 the BDI2000 cable is connected to the target, although the
 BDI is in 
 mode reset run. Do have an idea why?
 
 Best Regards,
 Jens
 
 
 -
 This SF.net email is sponsored by: Microsoft 
 Defy all challenges. Microsoft(R) Visual Studio 2008. 
 http://clk.atdmt.com/MRT/go/vse012070mrt/direct/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 is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Loading a kernel on MX31ADS using U-boot

2008-04-14 Thread Jens Gehrlein
Hi Fabio,

Fabio Estevam schrieb:
 Hi Guennadi,
 
 Now I generated uImage correctly and it boots fine.

How did you build this Kernel? Did you use the LTIB?

Regards
Jens

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Loading a kernel on MX31ADS using U-boot

2008-04-14 Thread Fabio Estevam
Hi Jens,

Yes, I used LTIB for building the kernel:

export SYSCFG_KTARG=uImage
./ltib -p kernel -m prep
./ltib -p kernel -m scbuild
./ltib -p kernel -m scdeploy

The uImage is generated at:
.../rpm/BUILD/linux/arch/arm/boot/uImage 

Regards,

Fabio Estevam

--- Jens Gehrlein [EMAIL PROTECTED] wrote:

 Hi Fabio,
 
 Fabio Estevam schrieb:
  Hi Guennadi,
  
  Now I generated uImage correctly and it boots
 fine.
 
 How did you build this Kernel? Did you use the LTIB?
 
 Regards
 Jens
 

-
 This SF.net email is sponsored by the 2008
 JavaOne(SM) Conference 
 Don't miss this year's exciting event. There's still
 time to save $100. 
 Use priority code J8TL2D2. 

http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 U-Boot-Users mailing list
 U-Boot-Users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/u-boot-users
 



  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Loading a kernel on MX31ADS using U-boot

2008-04-14 Thread Jens Gehrlein
Fabio Estevam schrieb:
 Hi Jens,
 
 Yes, I used LTIB for building the kernel:
 
 export SYSCFG_KTARG=uImage
 ./ltib -p kernel -m prep
 ./ltib -p kernel -m scbuild
 ./ltib -p kernel -m scdeploy
 
 The uImage is generated at:
 .../rpm/BUILD/linux/arch/arm/boot/uImage 
 
 Regards,
 
 Fabio Estevam

Thank you very much.
I will try it as soon as I come to the Linux part.

Regards
Jens

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Loading a kernel on MX31ADS using U-boot

2008-04-13 Thread Fabio Estevam
Hi Guennadi,

Now I generated uImage correctly and it boots fine.

Have you ever tried to boot U-boot from NAND
(K9K1G08U0B) on the i.MX31ADS? 

Thanks,

Fabio Estevam

--- Guennadi Liakhovetski [EMAIL PROTECTED]
wrote:

 On Sat, 12 Apr 2008, Fabio Estevam wrote:
 
  I tried to load the kernel at 0x8080, but this
 is
  what I get:
  Hit any key to stop autoboot:  0
  = run bootargs_base bootargs_nfs
  = tftp 8080 uImage
  TFTP from server 10.29.244.101; our IP address is
  10.29.244.102
  Filename 'uImage'.
  Load address: 0x8080
  Loading:
 

#
   ###
  done
  Bytes transferred = 1339152 (146f10 hex)
  = bootm
  ## Booting image at 8080 ...
 Image Name:   Linux-2.6.22
 Image Type:   ARM Linux Kernel Image
 (uncompressed)
 Data Size:1339088 Bytes =  1.3 MB
 Load Address: 80008000
 Entry Point:  80008000
 Verifying Checksum ... OK
  OK
  
  Starting kernel ...
  
  Uncompressing
 

Linux.
  ... done, booting
 the
  kernel.
  (then it freezes)

  I generated uImage manually by doing:
  ./mkimage -A arm -O linux -T kernel -C none -a
  0x80008000 -e 0x80008000 -n 'Linux-2.6.22' -d
 zImage
  uImage
  
  Used 0x80008000 to match the value of ZRELADDR in
  /arch/arm/mach-mx3/Makefile.boot from Freescale
 Linux
  BSP.
 
 I'll just assume your uImage is correct - although I
 don't understand why 
 you don't just do make uImage. Apart from that,
 verify that your console= 
 command line parameter is correct, your machine ID
 matches, and that you 
 don't have a jtag debugger like bdi2000 connected
 when you're trying to 
 boot.
 
 Thanks
 Guennadi
 ---
 Guennadi Liakhovetski
 

-
 This SF.net email is sponsored by the 2008
 JavaOne(SM) Conference 
 Don't miss this year's exciting event. There's still
 time to save $100. 
 Use priority code J8TL2D2. 

http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
 ___
 U-Boot-Users mailing list
 U-Boot-Users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/u-boot-users
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Loading a kernel on MX31ADS using U-boot

2008-04-13 Thread Guennadi Liakhovetski
On Sun, 13 Apr 2008, Fabio Estevam wrote:

 Now I generated uImage correctly and it boots fine.

Good

 Have you ever tried to boot U-boot from NAND
 (K9K1G08U0B) on the i.MX31ADS? 

No, I have not.

Thanks
Guennadi
---
Guennadi Liakhovetski

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Loading a kernel on MX31ADS using U-boot

2008-04-12 Thread Guennadi Liakhovetski
On Fri, 11 Apr 2008, Fabio Estevam wrote:

 I am using U-boot 1.3.2 with the MX31ADS patches
 posted by Guennadi Liakhovetski.
 
 I would like to load the zImage kernel from Freescale
 Linux BSP via TFTP and mount the rootfs via NFS.

You nead a uImage. Just use the same kernel sources and do make uImage 
instead of zImage.

 Does anyone have an example for doing this? I am not
 sure what address should I use to load the kernel into
 RAM.

Load it to 0x8080. You can also try the patch below, which will give 
you a better default environment, it shall be submitted to the list soon.

Thanks
Guennadi
---
Guennadi Liakhovetski

[PATCH] mx31ads: Fix default environment

Fix wrong load address in RAM, undefined environment variables,
make the default environment more usable.

Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED]
---
 include/configs/mx31ads.h |   25 ++---
 1 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/include/configs/mx31ads.h b/include/configs/mx31ads.h
index 78e2545..3ad3883 100644
--- a/include/configs/mx31ads.h
+++ b/include/configs/mx31ads.h
@@ -80,13 +80,24 @@
 #define CONFIG_IPADDR  192.168.23.168
 #define CONFIG_SERVERIP192.168.23.2
 
-#defineCONFIG_EXTRA_ENV_SETTINGS   
\
-   bootargs_base=setenv bootargs console=ttymxc0,115200\0
\
-   bootargs_nfs=setenv bootargs $(bootargs) root=/dev/nfs ip=dhcp 
nfsroot=$(serverip):$(nfsrootfs),v3,tcp\0  \
-   bootcmd=run bootcmd_net\0 
\
-   bootcmd_net=run bootargs_base bootargs_mtd bootargs_nfs; tftpboot 
0x8000 uImage-mx31; bootm\0 \
-   prg_uboot=tftpboot 0x8000 u-boot-mx31ads.bin; protect off 
0xa000 0xa001; erase 0xa000 0xa001; cp.b 0x8000 0xa000 
$(filesize)\0
-
+#defineCONFIG_EXTRA_ENV_SETTINGS   
\
+   netdev=eth0\0 \
+   load_addr=0x8080\0\
+   uboot_addr=0xa000\0   \
+   uboot=mx31ads/u-boot.bin\0\
+   kernel=mx31ads/uImage\0   \
+   nfsroot=/opt/eldk/arm\0   \
+   bootargs_base=setenv bootargs console=ttymxc0,115200\0\
+   bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs\
+   ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp\0   \
+   bootcmd=run bootcmd_net\0 \
+   bootcmd_net=run bootargs_base bootargs_nfs;   \
+   tftpboot ${load_addr} ${kernel}; bootm\0  \
+   prg_uboot=tftpboot ${load_addr} ${uboot}; \
+   protect off ${uboot_addr} 0xa003; \
+   erase ${uboot_addr} 0xa003;   \
+   cp.b ${load_addr} ${uboot_addr} ${filesize};  \
+   setenv filesize; saveenv\0
 
 #define CONFIG_DRIVER_CS8900   1
 #define CS8900_BASE0xb4020300
-- 
1.5.4


-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


Re: [U-Boot-Users] Loading a kernel on MX31ADS using U-boot

2008-04-12 Thread Guennadi Liakhovetski
On Sat, 12 Apr 2008, Fabio Estevam wrote:

 I tried to load the kernel at 0x8080, but this is
 what I get:
 Hit any key to stop autoboot:  0
 = run bootargs_base bootargs_nfs
 = tftp 8080 uImage
 TFTP from server 10.29.244.101; our IP address is
 10.29.244.102
 Filename 'uImage'.
 Load address: 0x8080
 Loading:
 #
  ###
 done
 Bytes transferred = 1339152 (146f10 hex)
 = bootm
 ## Booting image at 8080 ...
Image Name:   Linux-2.6.22
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:1339088 Bytes =  1.3 MB
Load Address: 80008000
Entry Point:  80008000
Verifying Checksum ... OK
 OK
 
 Starting kernel ...
 
 Uncompressing
 Linux.
 ... done, booting the
 kernel.
 (then it freezes)
   
 I generated uImage manually by doing:
 ./mkimage -A arm -O linux -T kernel -C none -a
 0x80008000 -e 0x80008000 -n 'Linux-2.6.22' -d zImage
 uImage
 
 Used 0x80008000 to match the value of ZRELADDR in
 /arch/arm/mach-mx3/Makefile.boot from Freescale Linux
 BSP.

I'll just assume your uImage is correct - although I don't understand why 
you don't just do make uImage. Apart from that, verify that your console= 
command line parameter is correct, your machine ID matches, and that you 
don't have a jtag debugger like bdi2000 connected when you're trying to 
boot.

Thanks
Guennadi
---
Guennadi Liakhovetski

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users


[U-Boot-Users] Loading a kernel on MX31ADS using U-boot

2008-04-11 Thread Fabio Estevam
Hi,

I am using U-boot 1.3.2 with the MX31ADS patches
posted by Guennadi Liakhovetski.

I would like to load the zImage kernel from Freescale
Linux BSP via TFTP and mount the rootfs via NFS.

Does anyone have an example for doing this? I am not
sure what address should I use to load the kernel into
RAM.

Thanks,

Fabio Estevam



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users