NSLU2-Linux
view · edit · print · history

By changing the kernel command line it is possible to boot directly to the jffs2 rootfs. I did this by changing the kernel command line to the following: CMDLINE_ROOT = "root=/dev/mtdblock4 rootfstype=jffs2 mem=32M@0x00000000" in the openslug-kernel_2.6.9.bb file.

N.B. Switchbox is still currently there, just unused.

For the curious I added two lines at the end of the /etc/init.d/sysconfsetup to automatically load the drivers for the hd and I'm testing the hotplug-ng which is much faster.

 modprobe usbcore
 modprobe ehci_hcd

Below is the kernel log of the boot:

  Rebooting... Restarting system.
  +Ethernet eth0: MAC address 00:04:5a:0f:9d:2c
  IP: 192.168.0.1/255.255.255.0, Gateway: 192.168.0.1
  Default server: 0.0.0.0, DNS server IP: 0.0.0.0

  RedBoot(tm) bootstrap and debug environment [ROMRAM]
  Red Hat certified release, version 1.92 - built 15:16:07, Feb  3 2004

  Platform: IXDP425 Development Platform (XScale?)
  Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

  RAM: 0x00000000-0x02000000, 0x000723a0-0x01ff3000 available
  FLASH: 0x50000000 - 0x50800000, 64 blocks of 0x00020000 bytes each.
  == Executing boot script in 2.000 seconds - enter ^C to abort
  RedBoot> boot;exec 0x01d00000
  have eRcOmM
  copy kernel code from flash to RAM
  copy ramdisk file from flash to RAM
  run kernel
  Using base address 0x01d00000 and length 0x000d3874
  Uncompressing Linux........................................................... done, booting the kernel.
  Linux version 2.6.9 (tom@gentoo2) (gcc version 3.4.3) #1 Thu Feb 17 14:46:46 EST 2005
  CPU: XScale?-IXP42x? Family [690541f1] revision 1 (ARMv5TE?)
  CPU: D undefined 5 cache
  CPU: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
  CPU: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
  Machine: Linksys NSLU2
  Warning: bad configuration page, trying to continue
  Memory policy: ECC disabled, Data cache writeback
  Built 1 zonelists
  Kernel command line: root=/dev/mtdblock4 rootfstype=jffs2 mem=32M@0x00000000 console=ttyS0,115200n8
  PID hash table entries: 256 (order: 8, 4096 bytes)
  Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
  Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
  Memory: 32MB = 32MB total
  Memory: 30528KB available (1448K code, 325K data, 72K init)
  Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
  CPU: Testing write buffer coherency: ok
  NET: Registered protocol family 16
  PCI: IXP4xx? is host
  PCI: IXP4xx? Using indirect access for memory space
  PCI: bus0: Fast back to back transfers disabled
  dmabounce: registered device 0000:00:01.0 on pci bus
  dmabounce: registered device 0000:00:01.1 on pci bus
  dmabounce: registered device 0000:00:01.2 on pci bus
  OpenN2? Misc I/O Driver Version 0.1.7
  enable_irq(22) unbalanced from c000ed08
  enable_irq(29) unbalanced from c000ed10
  NetWinder? Floating Point Emulator V0.97 (double precision)
  JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.
  IXP4xx? Watchdog Timer: heartbeat 60 sec
  Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
  ttyS0 at MMIO 0xc8000000 (irq = 15) is a XScale?
  RAMDISK driver initialized: 16 RAM disks of 10240K size 1024 blocksize
  loop: loaded (max 8 devices)
  Using anticipatory io scheduler
  IXP4XX-Flash0: Found 1 x16 devices at 0x0 in 16-bit bank
   Intel/Sharp Extended Query Table at 0x0031
  cfi_cmdset_0001: Erase suspend on write enabled
  Using buffer write method
  6 RedBoot partitions found on MTD device IXP4XX-Flash0
  Creating 6 MTD partitions on "IXP4XX-Flash0":
  0x00000000-0x00040000 : "RedBoot"
  0x00040000-0x00060000 : "SysConf?"
  0x00060000-0x00160000 : "Kernel"
  0x00160000-0x00800000 : "Ramdisk"
  0x001a0000-0x007e0000 : "Flashdisk"
  0x007e0000-0x00800000 : "FIS directory"
  i2c /dev entries driver
  LOADED Xicor x1205 RTC Dvr v0.9.3.3NPW
  NET: Registered protocol family 2
  IP: routing cache hash table of 512 buckets, 4Kbytes
  TCP: Hash tables configured (established 2048 bind 4096)
  NET: Registered protocol family 1
  VFS: Mounted root (jffs2 filesystem) readonly.
  Freeing init memory: 72K
  INIT: version 2.86 booting
  ixp400: module license 'unspecified' taints kernel.
  Module init.
  ixp425_eth:
  Initializing IXP425 NPE Ethernet driver software v. 1.1A
  ixp425_eth: CPU clock speed (approx) = 0 MHz?
  [error] ixEthMiiPhyScan : unexpected Mii PHY ID 00008201
  ixp425_eth: npe0 is using the PHY at address 0
  ixp425_eth: npe1 is using the PHY at address 1
  usbcore: registered new driver usbfs
  usbcore: registered new driver hub
  PCI: enabling device 0000:00:01.2 (0140 -> 0142)
  ehci_hcd 0000:00:01.2: EHCI Host Controller
  ehci_hcd 0000:00:01.2: irq 26, pci mem 48002000
  ehci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1
  ehci_hcd 0000:00:01.2: USB 2.0 enabled, EHCI 1.00, driver 2004-May-10
  hub 1-0:1.0: USB hub found
  hub 1-0:1.0: 5 ports detected
  usb 1-1: new high speed USB device using address 2
  SCSI subsystem initialized
  Initializing USB Mass Storage driver...
  usbcore: registered new driver usb-storage
  USB Mass Storage support registered.
  scsi0 : SCSI emulation for USB Mass Storage devices
    Vendor: Maxtor    Model: OneTouch?          Rev: 0201
    Type:   Direct-Access                      ANSI SCSI revision: 02
  Setting up IP spoofing protection: rp_filter.
  Configuring network interfaces... done.
  Starting portmap daemon:SCSI device sda: 240119808 512-byte hdwr sectors (122941 MB)
  sda: assuming drive cache: write through
   sda: portmap sda1 sda2 sda3
  Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
  .
  Configuring update-modules
  /usr/lib/ipkg/info/update-modules.postinst: 5: /etc/init.d/modutils.sh: not found
  postinst script returned status 127
  ERROR: update-modules.postinst returned 127
  Nothing to be done
  INIT: Entering runlevel: 2
  Starting Dropbear SSH server: dropbear.
  Starting portmap daemon: portmap/sbin/portmap already running.
  836
  .
  Starting syslogd/klogd: done

  OpenEmbedded Linux nslu2 ttyS0

  nslu2 login:
view · edit · print · history · Last edited by g2.
Originally by g2.
Page last modified on April 14, 2005, at 03:26 PM