Colin Tuckley wrote: > Nick Bane wrote: > >> The default board type as used by the kernel loader is in params.h - see >> parameter "build". This may be overridden by the parameter file in the >> first yaffs partition if present. > By kernel loader I mean the bootldr kernel loader hence the params.h refers to the bootldr source not the kernel source. > With my 2.4.25 kernel this doesn't appear to be working. > > I have the following from bootldr: > > boot> yaffs ls > -rw------- 0 0 93 boot.conf > -rw------- 0 0 758656 zImage > drw-rw-rw- 0 0 512 lost+found > boot> yaffs cat boot.conf > bootldr: set build "guralp" > bootldr: set boot_flags 0x00000005 > bootldr: set enable_mmu 1 > ? > boot> > > But when I boot Linux I still get: > > Uncompressing Linux................................................... done, > booting the kernel. > Linux version 2.4.25-aleph1-1.0 (colin@buzet) (gcc version 3.3.5 (Debian > 1:3.3.5-13)) #3 Thu Feb 23 14:26:42 GMT 2006 > CPU: StrongARM-1110 revision 9 > Machine: Balloon > Security risk: creating user accessible mapping for 0x00000000 at 0xe8000000 > Security risk: creating user accessible mapping for 0x10000000 at 0xf1000000 > Security risk: creating user accessible mapping for 0x40000000 at 0xf3000000 > On node 0 totalpages: 16384 > zone(0): 16384 pages. > zone(1): 0 pages. > zone(2): 0 pages. > Kernel command line: noinitrd root=/dev/mtdblock1 init=/linuxrc > console=ttySA0 rootfstype=yaffs cpufreq=59000-20640 > Board set to <2.05> > Build set to > Console: colour dummy device 80x30 > Calibrating delay loop... 137.21 BogoMIPS > Memory: 64MB = 64MB total > Memory: 63076KB available (1335K code, 302K data, 68K init) > Dentry cache hash table entries: 8192 (order: 4, 65536 bytes) > Inode cache hash table entries: 4096 (order: 3, 32768 bytes) > Mount cache hash table entries: 512 (order: 0, 4096 bytes) > Buffer cache hash table entries: 4096 (order: 2, 16384 bytes) > Page-cache hash table entries: 16384 (order: 4, 65536 bytes) > CPU: Testing write buffer: pass > POSIX conformance testing by UNIFIX > Linux NET4.0 for Linux 2.4 > Based upon Swansea University Computer Society NET3.039 > Initializing RT netlink socket > CPU clock: 206.400 MHz (59.000-206.400 MHz) > 2.05 board initialised > Board = <2.05> > Build = > Name = > balloon_io_setup: setting up balloon i/o interface > SA1100 USB Controller Core Initialized > get_random_bytes called before random driver initialization > usbctl: Opened for usb-eth > usbctl: Started for usb-eth > Starting kswapd > devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au) > devfs: boot_options: 0x1 > yaffs Feb 16 2006 16:35:30 Installing. > i2c-core.o: i2c core module version 2.6.1 (20010830) > i2c_balloon: Balloon I2C Driver > Balloon CPLD L3 support added > ttySA%d0 at MMIO 0x80050000 (irq = 17) is a SA1100 > ttySA%d1 at MMIO 0x80010000 (irq = 15) is a SA1100 > ttySA%d2 at MMIO 0x80030000 (irq = 16) is a SA1100 > Balloon Monochrome Framebuffer 480x144 4bpp > Console: switching to colour frame buffer device 60x18 > Balloon keyboard driver v1.0 > pty: 256 Unix98 ptys configured > Balloon Keyboard Access > pcf8583_attach: attached > SA1100 Real Time Clock driver v1.01 > rtc_init: i2c RTC date read *INVALID* > rtc_init: Balloon i2c RTC detected > SCSI subsystem driver Revision: 1.00 > kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2 > kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2 > kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2 > Balloon audio support > ** PERMANENTLY POWERED ** > Initialising Balloon NAND MTD devices. > nand_scan: nand_maf_id is 0xec. nand_dev_id is 0x76 > NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V > 8-bit) > 3 NAND chips detected > Creating 2 MTD partitions on "NAND 64MiB 3,3V 8-bit": > 0x00000000-0x00100000 : "nand boot" > mtd: Giving out device 0 to nand boot > 0x00100000-0x0c000000 : "nand root" > mtd: Giving out device 1 to nand root > Initialising of First Balloon NAND MTD was successful. > nand_scan: nand_maf_id is 0x0. nand_dev_id is 0x0 > No NAND device found!!! > Unable to find second Balloon NAND device (SmartMedia). > NET4: Linux TCP/IP 1.0 for NET4.0 > IP Protocols: ICMP, UDP, TCP, IGMP > IP: routing cache hash table of 512 buckets, 4Kbytes > TCP: Hash tables configured (established 4096 bind 8192) > NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. > NetWinder Floating Point Emulator V0.97 (double precision) > yaffs: dev is 7937 name is "1f:01" > yaffs: Attempting MTD mount on 31.1, "1f:01" > block 1071 is bad > VFS: Mounted root (yaffs filesystem). > Mounted devfs on /dev > Freeing init memory: 68K > Setting up RAMFS, please wait... > > So something is not doing as you suggest. > It has worked for me in the past with board=aleph1 and I believe it has worked for David Bisset with build=hydra using my kernel builds but the message is not encouraging. If I do a "set build=guralp" "params save" and "reset" I get the expected result using my bootldr and 2.4.25... . What does cat /proc/balloon_board report for you? > My kernel source tree doesn't have any file named params.h and the various > param.h files don't have any reference to "build" in them. > > There *is* a params.h in the bootldr source tree, is that what you were > thinking of? > Yes, see above. Nick > regards, > > Colin >