All pastes #413126 Raw Edit

Someone

public text v1 · immutable
#413126 ·published 2007-03-28 04:03 UTC
rendered paste body
RedBoot> reset
... Resetting.+Ethernet eth0: MAC address 00:0f:66:7b:fe:f1
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 availablesete
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 0x0000a4a4


APEX Boot Loader 1.4.17 -- Copyright (c) 2004,2005,2006,2007 Marc Singer

APEX comes with ABSOLUTELY NO WARRANTY.  It is free software and you
are welcome to redistribute it under certain circumstances.
For details, refer to the file COPYING in the program source.

  apex => mem:0x00200000+0xa4a4   (42148 bytes)
  env  => nor:128k+64k            (no-write)

Use the command 'help help' to get started.

# copy $kernelsrc $bootaddr
# copy nor:0x60010+0xffff0 0x00008000
1048560 bytes transferred
# copy $ramdisksrc $ramdiskaddr
# copy nor:0x160010+0x69fff0 0x01000000
6946800 bytes transferred
# wait 10 Type ^C key to cancel autoboot.
Type ^C key to cancel autoboot.
# boot
ATAG_HEADER
ATAG_MEM: start 0x00000000  size 0x02000000
ATAG_CMDLINE: (35 bytes) 'console=ttyS0,115200 root=/dev/ram'
ATAG_INITRD2: start 0x01000000  size 0x00400000
ATAG_END
Booting kernel at 0x00008000...


APEX Boot Loader 1.4.17 -- Copyright (c) 2004,2005,2006,2007 Marc Singer

APEX comes with ABSOLUTELY NO WARRANTY.  It is free software and you
are welcome to redistribute it under certain circumstances.
For details, refer to the file COPYING in the program source.

  apex => mem:0x00200000+0xa4a4   (42148 bytes)
  env  => nor:128k+64k            (no-write)

Use the command 'help help' to get started.

# copy $kernelsrc $bootaddr
# copy nor:0x60010+0xffff0 0x00008000
1048560 bytes transferred
# copy $ramdisksrc $ramdiskaddr
# copy nor:0x160010+0x69fff0 0x01000000
6946800 bytes transferred
# wait 10 Type ^C key to cancel autoboot.
Type ^C key to cancel autoboot.
apex>


=========================================
apex> version

APEX Boot Loader 1.4.17 -- Copyright (c) 2004,2005,2006,2007 Marc Singer

APEX comes with ABSOLUTELY NO WARRANTY.  It is free software and you
are welcome to redistribute it under certain circumstances.
For details, refer to the file COPYING in the program source.

  apex => mem:0x00200000+0xa4a4   (42148 bytes)
  env  => nor:128k+64k            (no-write)

  memory: 0x0 0x02000000 (32 MiB)
  nor:    8MiB total  32B write buffer (Intel)
          region 0:  64 blocks of 131072 (0x20000) bytes
  fis:
          nor:0x00000000+0x00040000 RedBoot
          nor:0x00040000+0x00020000 SysConf
          nor:0x00060000+0x00020000 Loader
             @0x00000000+0x00000010  (skip)
          nor:0x00080000+0x00160000 Kernel
             @0x00000000+0x00000010  (skip)
             @0x000e0000+0x00000010  (skip)
          nor:0x001e0000+0x00600000 Ramdisk
             @0x00000000+0x00000010  (skip)
          nor:0x007e0000+0x00020000 FIS directory
  cpu:      id 0x690541f1  ctrl   0xafa (viZfRsBLDPWcAm)  cpsr 0x200000d3
          ttbl 0x00000000  domain 0x55555555  cache 0x0b1aa1aa

Use the command 'help help' to get started.

=====================================================
output of config:

#
# Automatically generated make config: don't edit
# Linux kernel version: 
# Sun Feb 25 18:48:19 2007
#
CONFIG_ARM=y
CONFIG_CPU_ARMV5=y
CONFIG_CPU_XSCALE=y
# CONFIG_ARCH_LH7952X is not set
# CONFIG_ARCH_LH7A40X is not set
CONFIG_ARCH_IXP42X=y
# CONFIG_ARCH_S3C2410 is not set
# CONFIG_ARCH_MX3 is not set
# CONFIG_EXPERIMENTAL is not set
# CONFIG_SMALL is not set

#
# General Setup
#
CONFIG_CROSS_COMPILE="/usr/armv5b-softfloat-linux/gcc3/armv5b-softfloat-linux-"
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
# CONFIG_CC_OPTIMIZE_FOR_SPEED is not set
# CONFIG_CC_NO_OPTIMIZATION is not set
# CONFIG_STARTUP_UART is not set
# CONFIG_DEBUG_LL is not set
CONFIG_SPINNER=y
CONFIG_ATAG=y
# CONFIG_MMU is not set
CONFIG_DISABLE_MMU_AT_BOOT=y
CONFIG_SDRAMBOOT_REPORT=y
CONFIG_STACK_SIZE=0x1000
# CONFIG_BOOTSTRAP_MEMTEST is not set
CONFIG_ATAG_PHYS=0x00000100
CONFIG_ARCH_NUMBER=597
CONFIG_APEX_VMA=0x00200000
CONFIG_KERNEL_LMA=0x00008000
CONFIG_USE_RAMDISK=y
CONFIG_RAMDISK_LMA=0x01000000
CONFIG_SDRAM_BANK0=y
# CONFIG_SDRAM_BANK1 is not set
CONFIG_NOR_BUSWIDTH=16
CONFIG_NOR_BANK0=y
CONFIG_NOR_BANK0_START=0x50000000
CONFIG_NOR_BANK0_LENGTH=0x00800000
CONFIG_ENV_STARTUP=""
CONFIG_MACH="ixp42x"
CONFIG_RAMDISK_SIZE=0x00400000
CONFIG_MACH_NSLU2=y
# CONFIG_MACH_NAS100D is not set
# CONFIG_MACH_DSMG600 is not set
# CONFIG_MACH_AVILA2347 is not set
# CONFIG_USER_DEFAULTENDIAN is not set
CONFIG_USER_BIGENDIAN=y
# CONFIG_USER_LITTLEENDIAN is not set

#
# Platform Setup
#
CONFIG_SDRAM_BANK_LENGTH=0x02000000
# CONFIG_DISABLE_SECOND_UART_INIT is not set
CONFIG_ARCH_IXP420=y

#
# Commands
#
CONFIG_ALLHELP=y
CONFIG_ALPHABETIZE_COMMANDS=y
CONFIG_DEL_IS_BS=y
CONFIG_ANSI_KEYS=y
CONFIG_COMMAND_HISTORY=y
CONFIG_COMMAND_EDITING=y
# CONFIG_TIME_COMMANDS is not set
CONFIG_CMD_ALIAS=y
CONFIG_CMD_CHECKSUM=y
CONFIG_CMD_COPY=y
CONFIG_CMD_COMPARE=y
CONFIG_CMD_DRVINFO=y
CONFIG_CMD_DUMP=y
CONFIG_CMD_ENV=y
CONFIG_CMD_SETENV=y
CONFIG_CMD_ERASE=y
CONFIG_CMD_FILL=y
CONFIG_CMD_GO=y
CONFIG_CMD_INFO=y
# CONFIG_CMD_PAUSE is not set
CONFIG_CMD_WAIT=y
CONFIG_CMD_XRECEIVE=y
# CONFIG_CMD_MEMLIMIT is not set
# CONFIG_CMD_MEMSCAN is not set

#
# Generic Drivers
#
# CONFIG_DRIVER_FAT is not set
# CONFIG_DRIVER_EXT2 is not set
# CONFIG_DRIVER_JFFS2 is not set
CONFIG_DRIVER_FIS=y
CONFIG_DRIVER_FIS_BLOCKDEVICE="nor:0x7e0000+4k"
CONFIG_DRIVER_NOR_CFI=y
# CONFIG_DRIVER_NOR_CFI_NO_BUFFERED is not set
CONFIG_DRIVER_NOR_CFI_TYPE_INTEL=y
# CONFIG_DRIVER_NOR_CFI_TYPE_SPANSION is not set
CONFIG_USES_NOR_CFI=y
CONFIG_USES_PATHNAME_PARSER=y
CONFIG_USES_IXP4XX_NPE_ETH=y

#
# Environment
#
CONFIG_ENV=y
CONFIG_ENV_MUTABLE=y
CONFIG_ENV_LINK=y
CONFIG_ENV_REGION="nor:128k+64k"
CONFIG_ENV_CHECK_LEN=1024
# CONFIG_VARIATIONS is not set
# CONFIG_NO_BOOTSTRAP is not set
CONFIG_NOR_BOOT=y
# CONFIG_NAND_BOOT is not set
# CONFIG_COMPANION_EVT1_BOOT is not set
# CONFIG_COMPANION_EVT2_BOOT is not set

#
#    Default Startup
#
CONFIG_AUTOBOOT=y
CONFIG_AUTOBOOT_DELAY=10
CONFIG_ENV_STARTUP_KERNEL_COPY=y
# CONFIG_ENV_REGION_KERNEL_SWAP is not set
CONFIG_ENV_STARTUP_RAMDISK_COPY=y
# CONFIG_ENV_REGION_RAMDISK_SWAP is not set

#
#    Regions
#
CONFIG_ENV_REGION_KERNEL="nor:0x60010+0xffff0"
CONFIG_ENV_REGION_RAMDISK="nor:0x160010+0x69fff0"

#
#    Overrides
#
# CONFIG_ENV_DEFAULT_CMDLINE_OVERRIDE is not set
# CONFIG_ENV_DEFAULT_STARTUP_OVERRIDE is not set
CONFIG_USES_NOR_BOOTFLASH=y
CONFIG_BIGENDIAN=y
CONFIG_ALIASES=y

===============================================

apex> printenv

cmdline *= console=ttyS0,115200 root=/dev/ram
fis-drv *= nor:0x7e0000+4k
startup *= copy $kernelsrc $bootaddr; copy $ramdisksrc $ramdiskaddr; wait 10 Type ^C key to cancel autoboot.; boot
ramdisksrc *= nor:0x160010+0x69fff0
kernelsrc *= nor:0x60010+0xffff0
ramdiskaddr *= 0x01000000
bootaddr *= 0x00008000

===============================================
after Rod Whitby rebuild of APEX 1.4.17:


apex> reset
Performing watchdog reset
+Ethernet eth0: MAC address 00:0f:66:7b:fe:f1
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 0x0000b26c
A

APEX Boot Loader 1.4.17 -- Copyright (c) 2004,2005,2006,2007 Marc Singer

APEX comes with ABSOLUTELY NO WARRANTY.  It is free software and you
are welcome to redistribute it under certain circumstances.
For details, refer to the file COPYING in the program source.

  apex => mem:0x00200000+0xb26c   (45676 bytes)
  env  => nor:0x7c000+15k         (empty)

Use the command 'help help' to get started.

# copy -s $kernelsrc $bootaddr
# copy -s fis://kernel 0x00008000
1441760 bytes transferred
# copy -s $ramdisksrc $ramdiskaddr
# copy -s fis://ramdisk 0x01000000
6291440 bytes transferred
# wait 10 Type ^C key to cancel autoboot.
Type ^C key to cancel autoboot.
# boot
ATAG_HEADER
ATAG_MEM: start 0x00000000  size 0x02000000
ATAG_CMDLINE: (55 bytes) 'console=ttyS0,115200 rtc-x1205.probe=0,0x6f noirqdebug'
ATAG_INITRD2: start 0x01000000  size 0x00400000
ATAG_END
Booting kernel at 0x00008000...
Uncompressing Linux............................................................................... done, booting the kernel.
Linux version 2.6.18-4-ixp4xx (Debian 2.6.18.dfsg.1-11) (waldi@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 Thu Feb 22 14:00:55 UTC 2007
CPU: XScale-IXP42x Family [690541f1] revision 1 (ARMv5TE), cr=0000397f
Machine: Linksys NSLU2
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT undefined 5 cache
CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
Built 1 zonelists.  Total pages: 8192
Kernel command line: console=ttyS0,115200 rtc-x1205.probe=0,0x6f noirqdebug
IRQ lockup detection disabled
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 25780KB available (1948K code, 496K data, 92K init)
Security Framework v1.0.0 initialized
SELinux:  Disabled at boot.
Capability LSM initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
checking if image is initramfs... it is
Freeing initrd memory: 4096K
NET: Registered protocol family 16
IXP4xx: Using 16MiB expansion bus window size
PCI: IXP4xx is host
PCI: IXP4xx Using direct 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
NET: Registered protocol family 2
IP route cache hash table entries: 256 (order: -2, 1024 bytes)
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 1024 bind 512)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
audit: initializing netlink socket (disabled)
audit(4.400:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
IXP4xx Watchdog Timer: heartbeat 60 sec
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xc8000000 (irq = 15) is a XScale
serial8250.0: ttyS1 at MMIO 0xc8001000 (irq = 13) is a XScale
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
IXP4XX-Flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
Searching for RedBoot partition table in IXP4XX-Flash.0 at offset 0x7e0000
6 RedBoot partitions found on MTD device IXP4XX-Flash.0
Creating 6 MTD partitions on "IXP4XX-Flash.0":
0x00000000-0x00040000 : "RedBoot"
NSLU2 MAC: 00:0f:66:7b:fe:f1
0x00040000-0x00060000 : "SysConf"
0x00060000-0x00080000 : "Loader"
0x00080000-0x001e0000 : "Kernel"
0x001e0000-0x007e0000 : "Ramdisk"
0x007e0000-0x00800000 : "FIS directory"
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
x1205 0-006f: chip found, driver version 1.0.7
x1205 0-006f: rtc core: registered x1205 as rtc0
Registered led device: ready
Registered led device: status
Registered led device: disk-1
Registered led device: disk-2
NET: Registered protocol family 26
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
x1205 0-006f: hctosys: invalid date/time
Freeing init memory: 92K
Time: OSTS clocksource has been installed.
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: enabling device 0000:00:01.0 (0140 -> 0142)
ohci_hcd 0000:00:01.0: OHCI Host Controller
ohci_hcd 0000:00:01.0: new USB bus registered, assigned bus number 1
ohci_hcd 0000:00:01.0: irq 28, io mem 0x48000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
PCI: enabling device 0000:00:01.1 (0140 -> 0142)
ohci_hcd 0000:00:01.1: OHCI Host Controller
ohci_hcd 0000:00:01.1: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:01.1: irq 27, io mem 0x48001000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
PCI: enabling device 0000:00:01.2 (0140 -> 0142)
ehci_hcd 0000:00:01.2: EHCI Host Controller
ehci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 3
ehci_hcd 0000:00:01.2: irq 26, io mem 0x48002000
ehci_hcd 0000:00:01.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 5 ports detected
swapped image found
Image loaded to NPE-B Func:0, Rel: 2:1, Status: 82c00000
IXP4XX NPE driver Version 0.3.0 initialized
input: ixp4xx beeper as /class/input/input0
IXP4XX Q Manager 0.2.1 initialized.
ixp4xx_mac driver 0.3.1: eth0 on NPE-B with PHY[1] initialized
Starting system log daemon: syslogd, klogd.
Entering low memory mode, please wait ...
devio: /dev/mtdblock1: read beyond end of file
FATAL: Module usbkbd not found.
FATAL: Module usbhid not found.
FATAL: Module usbserial not found.

(then the installer starts)

================================================
apex> printenv
fis-drv *= nor:0x7e0000+4k
cmdline *= console=ttyS0,115200 rtc-x1205.probe=0,0x6f noirqdebug
cmdline-alt *= console=ttyS0,115200 rtc-x1205.probe=0,0x6f noirqdebug
bootaddr *= 0x00008000
ramdiskaddr *= 0x01000000
kernelsrc *= fis://kernel
kernelsrc-alt *= fis://kernel
ramdisksrc *= fis://ramdisk
ramdisksrc-alt *= fis://ramdisk
startup *= copy -s $kernelsrc $bootaddr; copy -s $ramdisksrc $ramdiskaddr; wait 10 Type ^C key to cancel autoboot.; boot
apex>
apex>
apex> version


APEX Boot Loader 1.4.17 -- Copyright (c) 2004,2005,2006,2007 Marc Singer

APEX comes with ABSOLUTELY NO WARRANTY.  It is free software and you
are welcome to redistribute it under certain circumstances.
For details, refer to the file COPYING in the program source.

  apex => mem:0x00200000+0xb26c   (45676 bytes)
  env  => nor:0x7c000+15k         (empty)

          *** No SDRAM init when APEX executed from SDRAM.
   stack: 2760 used (4096)
  memory: 0x0 0x02000000 (32 MiB)
  nor:    8MiB total  32B write buffer (Intel)
          region 0:  64 blocks of 131072 (0x20000) bytes
  fis:
          nor:0x00000000+0x00040000 RedBoot
          nor:0x00040000+0x00020000 SysConf
          nor:0x00060000+0x00020000 Loader
             @0x00000000+0x00000010  (skip)
          nor:0x00080000+0x00160000 Kernel
             @0x00000000+0x00000010  (skip)
             @0x000e0000+0x00000010  (skip)
          nor:0x001e0000+0x00600000 Ramdisk
             @0x00000000+0x00000010  (skip)
          nor:0x007e0000+0x00020000 FIS directory
  cpu:      id 0x690541f1  ctrl   0x1a7f (vIZfRsbLDPWCAM)  cpsr 0x200000d3
          ttbl 0x00210000  domain 0xffffffff  cache 0x0b1aa1aa