[ELDK] Want to build a ebc.ko object

Price, John @ SDS john.p.price at l-3com.com
Wed Mar 26 16:49:28 CET 2008


>...will only wok ith old-style (arch/ppc) kernels. New (arch/powerpc)
>kernels need a device tree. Normally, U-Boot will pass  this  to  the
>kernel - you need to give it's address as 3rd argument in the "bootm"
>command.

Ok
  
>See Documentation/powerpc/booting-without-of.txt and
>http://www.denx.de/wiki/UBoot/UBootFdtInfo for more details.

[root at ma_jpricelt boot]# ./dtc -R 4 -S 0x3000 -I dts -O dtb -o
kilauea.dtb ./dts/kilauea.dts
DTC: dts->dtb  on file "./dts/kilauea.dts"

I then tftp'd the Kilauea.dtb to 0x400000 and the following command in
uboot.  Does the kernel output look reasonable?

> run ramargs addmtd setip addip addtty;bootm 0xfc000000 0xfc200000
0x400000
Using ip address 192.168.1.50
## Booting image at fc000000 ...
   Image Name:   Linux-2.6.25-rc6-01253-gca0a328
   Created:      2008-03-24  19:18:59 UTC
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1555953 Bytes =  1.5 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Loading RAMDisk Image at fc200000 ...
   Image Name:   Simple Embedded Linux Framework
   Created:      2008-02-22  11:58:24 UTC
   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
   Data Size:    1856970 Bytes =  1.8 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Booting using the fdt at 0x400000
   Loading Ramdisk to 0fd5a000, end 0ff1f5ca ... OK
Using Kilauea machine description
Linux version 2.6.25-rc6-01253-gca0a328 (root at ma_jpricelt) (gcc version
4.2.2) #1 Mon Mar 24 15:18:37 EDT 2008
Found initrd at 0xcfd5a000:0xcff1f5ca
Zone PFN ranges:
  DMA             0 ->    65536
  Normal      65536 ->    65536
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->    65536
Built 1 zonelists in Zone order, mobility grouping on.  Total pages:
65024
Kernel command line: ramdisk=65536 root=/dev/ram rw
mtdparts=physmap-flash.0:2M(linux),20M(ramdisk),4M(jffs2),38272k(user),2
56k(env),384k(uboot)
ip=192.168.1.50:192.168.1.239::255.255.255.0:kilauea:eth0:off panic=1
console=ttyS0,115200
UIC0 (32 IRQ sources) at DCR 0xc0
UIC1 (32 IRQ sources) at DCR 0xd0
UIC2 (32 IRQ sources) at DCR 0xe0
PID hash table entries: 1024 (order: 10, 4096 bytes)
clocksource: timebase mult[a00000] shift[22] registered
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 254396k/262144k available (3072k kernel code, 7432k reserved,
120k data, 125k bss, 144k init)
SLUB: Genslabs=10, HWalign=32, Order=0-1, MinObjects=4, CPUs=1, Nodes=1
Mount-cache hash table entries: 512
net_namespace: 152 bytes
NET: Registered protocol family 16
PCIE0: Checking link...
PCIE0: No device detected.
PCI host bridge /plb/pciex at 0a0000000 (primary) ranges:
 MEM 0x0000000090000000..0x0000000097ffffff -> 0x0000000080000000 
  IO 0x00000000e0000000..0x00000000e000ffff -> 0x0000000000000000
4xx PCI DMA offset set to 0x00000000
PCIE0: successfully set as root-complex
PCIE1: Checking link...
PCIE1: No device detected.
PCI host bridge /plb/pciex at 0c0000000 (primary) ranges:
 MEM 0x0000000098000000..0x000000009fffffff -> 0x0000000080000000 
  IO 0x00000000e0010000..0x00000000e001ffff -> 0x0000000000000000
4xx PCI DMA offset set to 0x00000000
PCIE1: successfully set as root-complex
PCI: Probing PCI hardware
PCI: Hiding 4xx host bridge resources 0000:00:00.0
PCI: Hiding 4xx host bridge resources 0001:40:00.0
PCI: Bridge: 0000:00:00.0
  IO window: disabled.
  MEM window: disabled.
  PREFETCH window: disabled.
PCI: Bridge: 0001:40:00.0
  IO window: disabled.
  MEM window: disabled.
  PREFETCH window: disabled.
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Time: timebase clocksource has been installed.
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
checking if image is initramfs...it isn't (no cpio magic); looks like an
initrd
Freeing initrd memory: 1813k freed
JFFS2 version 2.2. (NAND) \0xc2\0xa9 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO 0xef600200 (irq = 26) is a 16550A
console [ttyS0] enabled
serial8250.0: ttyS1 at MMIO 0xef600300 (irq = 16) is a 16550A
ef600200.serial: ttyS0 at MMIO 0xef600200 (irq = 26) is a 16550A
ef600300.serial: ttyS1 at MMIO 0xef600300 (irq = 16) is a 16550A
brd: module loaded
PPC 4xx OCP EMAC driver, version 3.54
MAL v2 /plb/mcmal, 2 TX channels, 2 RX channels
RGMII /plb/opb/emac-rgmii at ef600b00 initialized with MDIO support
/plb/opb/emac-rgmii at ef600b00: input 0 in RGMII mode
eth0: EMAC-0 /plb/opb/ethernet at ef600900, MAC 00:06:4b:10:20:22
eth0: found Marvell 88E1111 Ethernet PHY (0x01)
/plb/opb/emac-rgmii at ef600b00: input 1 in RGMII mode
eth1: EMAC-1 /plb/opb/ethernet at ef600a00, MAC 00:06:4b:10:20:23
eth1: found Marvell 88E1111 Ethernet PHY (0x02)
Driver 'sd' needs updating - please use bus_type methods
fc000000.nor_flash: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
fc000000.nor_flash: CFI does not contain boot bank location. Assuming
top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
RedBoot partition parsing not available
Creating 6 MTD partitions on "fc000000.nor_flash":
0x00000000-0x001e0000 : "kernel"
0x001e0000-0x00200000 : "dtb"
0x00200000-0x00400000 : "root"
0x00400000-0x03f60000 : "user"
0x03f60000-0x03fa0000 : "env"
0x03fa0000-0x04000000 : "u-boot"
NDFC NAND Driver initialized. Chip-Rev: 0x00000111
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB
3,3V 8-bit)
Scanning device for bad blocks
Number of partitions 3
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00060000 : "u-boot"
0x00060000-0x00068000 : "env"
0x00068000-0x04000000 : "content"
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
dwc_otg: version 2.60a 22-NOV-2006
 OTG - device irq: 17
OTG - ioresource_mem start0xef6c0000: end:0xef6cffff
OTG Mapped base: 0xd1060000
DWC_otg: Shared Tx FIFO mode
DWC_otg: Using Slave mode
dwc_otg dwc_otg.0: DWC OTG Controller
dwc_otg dwc_otg.0: new USB bus registered, assigned bus number 1
dwc_otg dwc_otg.0: irq 17, io mem 0x00000000
DWC_otg: dwc_otg_core_host_init: Unable to clear halt on channel 1
DWC_otg: Init: Port Power? op_state=4
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: DWC OTG Controller
usb usb1: Manufacturer: Linux 2.6.25-rc6-01253-gca0a328 dwc_otg_hcd
usb usb1: SerialNumber: dwc_otg.0
i2c /dev entries driver
IBM IIC driver v2.1
rtc-ds1307 0-0068: rtc core: registered ds1338 as rtc0
rtc-ds1307 0-0068: 56 bytes nvram
ibm-iic(/plb/opb/i2c at ef600400): using standard (100 kHz) mode
ibm-iic(/plb/opb/i2c at ef600500): using standard (100 kHz) mode
ad7414 0-0048: chip found, driver version 0.1
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc-ds1307 0-0068: setting system clock to 2008-01-19 05:47:06 UTC
(1200721626)
eth0: link is down
IP-Config: Complete:
     device=eth0, addr=192.168.1.50, mask=255.255.255.0,
gw=255.255.255.255,
     host=kilauea, domain=, nis-domain=(none),
     bootserver=192.168.1.239, rootserver=192.168.1.239, rootpath=
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 144k init
eth0: link is up, 1000 FDX, pause enabled
init started: BusyBox v1.7.1 (2008-02-20 19:39:36 CET)
starting pid 772, tty '': '/etc/rc.sh'
starting pid 777, tty '': '/bin/application'
### Application running ...
starting pid 783, tty '': '/bin/sh'
~ # process '/bin/application' (pid 777) exited. Scheduling it for
restart.
starting pid 784, tty '': '/bin/application'
### Application running ...


Now to get on to the real work.

Regards,
---
John Price  <john.p.price at l-3com.com> 781-970-1743
L-3 Communications
Security & Detection Systems Division, 
10E Commerce Way, Woburn, MA 01801
 


More information about the eldk mailing list