I successfully compiled and run linux 2.6.32 on the micro 2440 SDK, but I could not bring the ethernet up This is what happen on the console: # ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) # ifup eth0 ifup: ignoring unknown interface eth0 # dmesg | grep eth0 eth0: dm9000e at c48a8300,c48ac304 IRQ 51 MAC: 08:90:90:90:90:90 (chip) # The LEDS at the ethernet port are always off, even if I connected the board to the ethernet hub. I can not ping to the hub. # ping 192.168.1.1 PING 192.168.1.1 (192.168.1.1): 56 data bytes ping: sendto: Network is unreachable # How can I bring up the internet interface? What options do I have to enable in the kernel? Thanks
Ethernet on micro2440
Try post boot log. Seems interface is not up or has different name but eth0 should work. ifup gives you error so ping can't work. marek
Thank for your quick reply ifconfig up eth0 didn't work, either. Below is the bootlog: U-Boot 1.3.2-mini2440 (Feb 24 2010 - 13:04:49) I2C: ready DRAM: 64 MB Flash: 2 MB NAND: Bad block table not found for chip 0 Bad block table not found for chip 0 256 MiB Found Environment offset in OOB.. USB: S3C2410 USB Deviced In: serial Out: serial Err: serial MAC: 08:08:11:18:12:27 Hit any key to stop autoboot: 0 mmc: Probing for SDHC ... mmc: SD 2.0 or later card found trying to detect SD Card... Manufacturer: 0x03, OEM "SD" Product name: "SD04G", revision 8.0 Serial number: 1889384334 Manufacturing date: 6/2009 CRC: 0x66, b0 = 1 READ_BL_LEN=15, C_SIZE_MULT=0, C_SIZE=365 size = 0 SD Card detected RCA: 0x8fe4 type: SDHC 2638224 bytes read ## Booting kernel from Legacy Image at 31000000 ... Image Name: Linux-2.6.32.2-FriendlyARM Created: 2011-01-12 4:16:45 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2638160 Bytes = 2.5 MB Load Address: 30008000 Entry Point: 30008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... Uncompressing Linux........................................................................... ............................................................... Linux version 2.6.32.2-FriendlyARM (root@ubuntu) (gcc version 4.4.5 (Buildroot 2011.02-git-00196-g6b0e9dd-dirty) ) #8 Tue Jan 11 20:16:39 PST 2011 CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177 CPU: VIVT data cache, VIVT instruction cache Machine: FriendlyARM Mini2440 development board Memory policy: ECC disabled, Data cache writeback CPU S3C2440A (id 0x32440001) S3C24XX Clocks, (c) 2004 Simtec Electronics S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 Kernel command line: console=ttySAC0,115200 noinitrd mini2440=1tb root=/dev/mmcblk0p3 rw rootwait PID hash table entries: 256 (order: -2, 1024 bytes) Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) Memory: 64MB = 64MB total Memory: 59372KB available (4852K code, 472K data, 168K init, 0K highmem) SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 Hierarchical RCU implementation. NR_IRQS:85 irq: clearing pending status 02000000 irq: clearing subpending status 00000002 Console: colour dummy device 80x30 console [ttySAC0] enabled Calibrating delay loop... 201.93 BogoMIPS (lpj=504832) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok NET: Registered protocol family 16 S3C2440: Initialising architecture S3C2440: IRQ Support S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics DMA channel 0 at c4808000, irq 33 DMA channel 1 at c4808040, irq 34 DMA channel 2 at c4808080, irq 35 DMA channel 3 at c48080c0, irq 36 S3C244X: Clock Support, DVS off bio: create slab <bio-0> at 0 SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb s3c-i2c s3c2440-i2c: slave address 0x10 s3c-i2c s3c2440-i2c: bus frequency set to 98 KHz s3c-i2c s3c2440-i2c: i2c-0: S3C I2C adapter NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 2048 (order: 2, 16384 bytes) TCP bind hash table entries: 2048 (order: 1, 8192 bytes) TCP: Hash tables configured (established 2048 bind 2048) TCP reno registered NET: Registered protocol family 1 RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. NetWinder Floating Point Emulator V0.97 (double precision) yaffs Jan 7 2011 21:52:49 Installing. JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc. msgmni has been set to 116 alg: No test for stdrng (krng) io scheduler noop registered (default) Console: switching to colour frame buffer device 100x30 fb0: s3c2410fb frame buffer device backlight initialized leds initialized Hello, Mini2440 module is installed ! buttons initialized pwm initialized adc initialized s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440 s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440 s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440 loop: module loaded S3C24XX NAND Driver, (c) 2004 Simtec Electronics s3c24xx-nand s3c2440-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns s3c24xx-nand s3c2440-nand: NAND soft ECC NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit) Scanning device for bad blocks Bad eraseblock 1574 at 0x00000c4c0000 Bad eraseblock 1655 at 0x00000cee0000 Bad eraseblock 1865 at 0x00000e920000 Bad eraseblock 1875 at 0x00000ea60000 Creating 5 MTD partitions on "NAND 256MiB 3,3V 8-bit": 0x000000000000-0x000000040000 : "supervivi" 0x000000040000-0x000000060000 : "param" 0x000000060000-0x000000560000 : "Kernel" 0x000000560000-0x000040560000 : "root" mtd: partition "root" extends beyond the end of device "NAND 256MiB 3,3V 8-bit" -- size truncated to 0xfaa0000 0x000000000000-0x000040000000 : "nand" mtd: partition "nand" extends beyond the end of device "NAND 256MiB 3,3V 8-bit" -- size truncated to 0x10000000 dm9000 Ethernet Driver, V1.31 eth0: dm9000e at c48a8300,c48ac304 IRQ 51 MAC: 08:90:90:90:90:90 (chip) ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver s3c2410-ohci s3c2410-ohci: S3C24XX OHCI s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1 s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000 usb usb1: New USB device found, idVendor=1d6b, idProduct=0001 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: S3C24XX OHCI usb usb1: Manufacturer: Linux 2.6.32.2-FriendlyARM ohci_hcd usb usb1: SerialNumber: s3c24xx usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected usbcore: registered new interface driver usblp Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. usbcore: registered new interface driver ums-alauda usbcore: registered new interface driver ums-cypress usbcore: registered new interface driver ums-datafab usbcore: registered new interface driver ums-freecom usbcore: registered new interface driver ums-isd200 usbcore: registered new interface driver ums-jumpshot usbcore: registered new interface driver ums-karma usbcore: registered new interface driver ums-onetouch usbcore: registered new interface driver ums-sddr09 usbcore: registered new interface driver ums-sddr55 usbcore: registered new interface driver ums-usbat usbcore: registered new interface driver usbserial USB Serial support registered for generic usbcore: registered new interface driver usbserial_generic usbserial: USB Serial Driver core USB Serial support registered for aircable usbcore: registered new interface driver aircable USB Serial support registered for ark3116 usbcore: registered new interface driver ark3116 USB Serial support registered for Belkin / Peracom / GoHubs USB Serial Adapter usbcore: registered new interface driver belkin belkin_sa: v1.2:USB Belkin Serial converter driver USB Serial support registered for ch341-uart usbcore: registered new interface driver ch341 USB Serial support registered for cp210x usbcore: registered new interface driver cp210x cp210x: v0.09:Silicon Labs CP210x RS232 serial adaptor driver USB Serial support registered for Reiner SCT Cyberjack USB card reader usbcore: registered new interface driver cyberjack cyberjack: v1.01 Matthias Bruestle cyberjack: REINER SCT cyberJack pinpad/e-com USB Chipcard Reader Driver USB Serial support registered for DeLorme Earthmate USB USB Serial support registered for HID->COM RS232 Adapter USB Serial support registered for Nokia CA-42 V2 Adapter usbcore: registered new interface driver cypress cypress_m8: v1.09:Cypress USB to Serial Driver USB Serial support registered for Digi 2 port USB adapter USB Serial support registered for Digi 4 port USB adapter usbcore: registered new interface driver digi_acceleport digi_acceleport: v1.80.1.2:Digi AccelePort USB-2/USB-4 Serial Converter driver USB Serial support registered for Edgeport 2 port adapter USB Serial support registered for Edgeport 4 port adapter USB Serial support registered for Edgeport 8 port adapter USB Serial support registered for EPiC device usbcore: registered new interface driver io_edgeport io_edgeport: v2.7:Edgeport USB Serial Driver USB Serial support registered for Edgeport TI 1 port adapter USB Serial support registered for Edgeport TI 2 port adapter usbcore: registered new interface driver io_ti io_ti: v0.7mode043006:Edgeport USB Serial Driver USB Serial support registered for empeg usbcore: registered new interface driver empeg empeg: v1.2:USB Empeg Mark I/II Driver USB Serial support registered for FTDI USB Serial Device usbcore: registered new interface driver ftdi_sio ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver USB Serial support registered for funsoft usbcore: registered new interface driver funsoft USB Serial support registered for Garmin GPS usb/tty usbcore: registered new interface driver garmin_gps garmin_gps: v0.33:garmin gps driver USB Serial support registered for hp4X usbcore: registered new interface driver hp4X hp4x: v1.00:HP4x (48/49) Generic Serial driver USB Serial support registered for Pocke...stripped-down
Log says clearly: dm9000 Ethernet Driver, V1.31 eth0: dm9000e at c48a8300,c48ac304 IRQ 51 MAC: 08:90:90:90:90:90 (chip) There are some problems with flash partitions. Your rootfs is mounted from flash or nfs or sd card? Anyway as Tobias stated check your cables ;) good luck, marek
The rootfs is in SDCARD. The hub and cable work OK. I checked it by connecting my PC to the hub with this cable Maybe something wrong with the network configuration.
Have such a issue when test emdebian (there was eth1 interface). Check ifup eth1. No other ideas. Sorry. marek
do you have udev on your system? i think udev renamed eth0 to eth1. just have a look in /etc/udev/rules.d/70-persistent-net.rules and delete everything in there and make a reboot greets rudie
Finally I got i work. I have to add the following lines to /etc/network/interfaces auto eth0 iface eth0 inet static address 192.168.1.230 netmask 255.255.255.0 broadcast 192.168.1.255 gateway 192.168.1.1 Now: # ifconfig eth0 Link encap:Ethernet HWaddr 08:90:90:90:90:90 inet addr:192.168.1.230 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::a90:90ff:fe90:9090/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:5 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1730 (1.6 KiB) TX bytes:468 (468.0 B) Interrupt:51 Base address:0x8300 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) # :) It is strange that I am the only one who had this problem. To get the micro2440 work I has to do a lot of manual configuration.
Bao, Would you be willing to share what all manual steps were required to get micro2440 to work ? Maybe if you have some notes of what all needs to be done. We are moving out of the SDK to the micro2440 standalone. Icarus