From: Brian S. Park Date: Thu, 12 Jun 2008 10:44:26 -0700 Subject: [U-Boot-Users] U-Boot and Linux on Walnut based board In-Reply-To: <20080612064511.9964C240E8@gemini.denx.de> References: <20080612064511.9964C240E8@gemini.denx.de> Message-ID: <200806121744.m5CHi2h8022515@mail.corelis.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang, Thank you for your response. Boot parameter I'm using is the following. bootargs=root=/dev/ram rw ramdisk_size=8192 console=ttyS0,115200 console=tty0 ip=192.168.1.157:192.168.1.86:192.168.1.2:255.255.255.0:DevUSB::off It is the same bootarg that I used when using U-Boot 1.0.0. I left the other environment variable as default. They are different than my old system but I do not see why they would make a difference. The linux kernel and the ramdisk image are programmed on the flash at ffc00000 and ffd00000 respectively. When I run the kernel as I usually do, it just locks up after uncompressing the images. I tried defining and undefining CONFIG_OF_LIBFDT and they both behave the same way. Below is the serial port capture of U-Boot 1.3.3 running on our old target. Only U-Boot has been updated. Any help will be appreciated. Thanks Brian => printenv bootcmd=run net_nfs bootdelay=5 baudrate=115200 loads_echo=1 ethaddr=00:04:ac:e3:14:87 ipaddr=192.168.1.157 serverip=192.168.1.86 autoload=no preboot=echo;echo Type \"run flash_nfs\" to mount root filesystem over NFS;echo gatewayip=192.168.1.2 netmask=255.255.255.0 netdev=eth0 hostname=DevUSB nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} ramargs=setenv bootargs root=/dev/ram rw addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev}:off panic=1 addtty=setenv bootargs ${bootargs} console=ttyS0,${baudrate} flash_nfs=run nfsargs addip addtty;bootm ${kernel_addr} flash_self=run ramargs addip addtty;bootm ${kernel_addr} ${ramdisk_addr} net_nfs=tftp 200000 ${bootfile};run nfsargs addip addtty;bootm rootpath=/opt/eldk/ppc_4xx bootfile=uImage kernel_addr=ffc00000 ethact=ppc_4xx_eth0 bootargs=root=/dev/ram rw ramdisk_size=8192 console=ttyS0,115200 console=tty0 ip=192.168.1.157:192.168.1.86:192.168.1.2:255.255.255.0:DevUSB::off stdin=serial stdout=serial stderr=serial ver=U-Boot 1.3.3 (Jun 12 2008 - 13:01:38) Environment size: 1091/8187 bytes => imi ffc00000 ## Checking Image at ffc00000 ... Legacy image found Image Name: Linux-2.4.20 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 559824 Bytes = 546.7 kB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK => imi ffd00000 ## Checking Image at ffd00000 ... Legacy image found Image Name: Image Type: PowerPC Linux RAMDisk Image (gzip compressed) Data Size: 1967920 Bytes = 1.9 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK => bootm ffc00000 ffd00000 ## Booting kernel from Legacy Image at ffc00000 ... Image Name: Linux-2.4.20 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 559824 Bytes = 546.7 kB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK ## Loading init Ramdisk from Legacy Image at ffd00000 ... Image Name: Image Type: PowerPC Linux RAMDisk Image (gzip compressed) Data Size: 1967920 Bytes = 1.9 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Ramdisk to 07dab000, end 07f8b730 ... OK At 11:45 PM 6/11/2008, Wolfgang Denk wrote: >Dear Brian, > >in message <200806120104.m5C148Yk019956@mail.corelis.com> you wrote: > > > > I'm trying to get the latest U-Boot 1.3.3 and Linux (any version) > > working on our custom board based on Walnut demo board. I have used > > U-Boot 1.0.0 and Linux 2.4.20 on our other similar board and that > > worked out well. However, a lot seems to have changed since then. > >Indeed, these versions are really old. Must have been already used by >the Troglodytes or so. > > > 1. U-Boot 1.3.3 works. But it does not boot the old Linux image or > > Linux 2.4.25 (latest 2.4?) compiled using ELDK 4.1 > >It should boot them just fine. What exacl;y are the commands you are >using, what your environment settings / boot areguments, and what the >error messages? > > > 2. U-Boot 1.0.0 boots Linux 2.4.25 (latest 2.4?) compiled using ELDK 4.1. > > > > Then I found out that the kernel parameter passing has changed and I > >No, not really. Only when you call for it. > > > should use powerpc architecture instead of ppc. But Linux 2.4.25 does > > not have powerpc architecture. So, I'm now trying 2.6 kernel. Using > > linux-2.6-latest.tar.bz2 from ftp://ftp.denx.de/pub/linux/. However, > >Forget about FTP. Please use git instead. If you really want, you can >use the snapshot feature of the web interface to download a tarball >(but using real git is stongly preferred). > > > the powerpc architecture does not have walnut.c for configuring the > > board. I need to customize it since our custom board does not have FPGA. > >Recent versions do have support for the walnut board. Please ignore >the FTP server and download the current code from the git repository. > > > What's the best way to build linux kernel that works on U-Boot 1.3.3? > >Again: U-Boot 1.3.3 will boot your old 2.4 kernel just fine. > >Best regards, > >Wolfgang Denk > >-- >DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel >HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany >Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de >"No matter where you go, there you are..." - Buckaroo Banzai =============================================================== Brian S. Park brian.park at corelis.com (562) 926-6727 x132 --------------------------------------------------------------- Everything we do helps our customers get to market FASTER with HIGHER quality and LOWER cost ===============================================================