Hi, I am using Pengutronics BSP for mini2440. I have ported all component (rootfs, kernel, bootloader) successfully. but before mounting I am getting Empty flash warning. Please check the kernel log below. dm9000 dm9000: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 IP-Config: Complete: device=eth0, addr=192.168.1.156, mask=255.255.255.0, gw=192.168.1.1, host=192.168.1.156, domain=, nis-domain=(none), bootserver=192.168.1.232, rootserver=192.168.1.232, rootpath= Empty flash at 0x0171c2ec ends at 0x0171c800 VFS: Mounted root (jffs2 filesystem) on device 31:3. devtmpfs: mounted Freeing init memory: 104K As I am trying to use this board in industrual environment, will this warning will be harmfull? Is there any way to get rid out of this warning? Please let me know further. -- miniarm
jffs2 Empty Flash warning - pengutronics BSP
Suggest you give us the whole boot log. Maybe, something is wrong before your quoted text as it all looks the same as mine . . . except I don't get the: Empty flash line
Take a look: |<---------- whole flash partition ------------->| |<---- jffs2 image ----->|<---- still empty ---->| If you erase the whole flash partition and then write the jffs2 image to the flash, only a part of the empty space contains the image. What you see is the message because JFFS2 finds the end of the image and then more "unformatted" space behind it. You can ignore this message, as JFFS2 than starts automatically to add the empty space the filesystem.
@davef, @juergen, Thank you for the time and explanation. I did the same step as mentioned in pdf. Please find the complete log. CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177 CPU: VIVT data cache, VIVT instruction cache Machine: MINI2440 Memory policy: ECC disabled, Data cache writeback CPU S3C2440A (id 0x32440001) S3C24XX Clocks, Copyright 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 mini2440=1tbc ip=192.168.1.156:192.168.1.232:192.168.1.1:255.255.255.0::: root=/dev/mtdblock3 rootfstype=jffs2 n) 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: 62144k/62144k available, 3392k reserved, 0K highmem Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) DMA : 0xffc00000 - 0xffe00000 ( 2 MB) vmalloc : 0xc4800000 - 0xf6000000 ( 792 MB) lowmem : 0xc0000000 - 0xc4000000 ( 64 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .text : 0xc0008000 - 0xc026ad0c (2444 kB) .init : 0xc026b000 - 0xc0285000 ( 104 kB) .data : 0xc0286000 - 0xc029fd80 ( 104 kB) .bss : 0xc029fda4 - 0xc02b9fcc ( 105 kB) SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 NR_IRQS:85 irq: clearing pending ext status 00000080 irq: clearing subpending status 00000002 Calibrating delay loop... 201.52 BogoMIPS (lpj=503808) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok devtmpfs: initialized NET: Registered protocol family 16 MINI2440: Option string mini2440=1tbc MINI2440: LCD 0:240x320 [1:800x480] 2:1024x768 3:240x320 4:640x480 5:240x320 6:320x240 7:480x272 S3C2440: Initialising architecture S3C2440: IRQ Support S3C24XX DMA Driver, Copyright 2003-2006 Simtec Electronics DMA channel 0 at c4804000, irq 33 DMA channel 1 at c4804040, irq 34 DMA channel 2 at c4804080, irq 35 DMA channel 3 at c48040c0, irq 36 S3C244X: Clock Support, DVS off s3c24xx-pwm s3c24xx-pwm.0: tin at 98876, tdiv at 98876, tin=divclk, base 0 S3C24XX CPU Frequency driver, s3c244x cpu support 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 UDP hash table entries: 256 (order: 0, 4096 bytes) UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) NET: Registered protocol family 1 NetWinder Floating Point Emulator V0.97 (extended precision) s3c-adc s3c24xx-adc: attached adc driver JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. msgmni has been set to 121 io scheduler noop registered io scheduler cfq registered (default) fb0: s3c2410fb frame buffer device s3c2440-uart.0: ttySAC0 at MMIO 0x50000000 (irq = 70) is a S3C2440 console [ttySAC0] enabled s3c2440-uart.1: ttySAC1 at MMIO 0x50004000 (irq = 73) is a S3C2440 s3c2440-uart.2: ttySAC2 at MMIO 0x50008000 (irq = 76) is a S3C2440 at24 0-0050: 1024 byte 24c08 EEPROM, writable, 16 bytes/write S3C24XX NAND Driver, (c) 2004 Simtec Electronics s3c24xx-nand s3c2440-nand: Tacls=1, 9ns Twrph0=3 29ns, Twrph1=2 19ns s3c24xx-nand s3c2440-nand: NAND hardware ECC s3c24xx-nand s3c2440-nand: Using flash based BBT NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 (Samsung NAND 1GiB 3,3V 8-bit) 4 cmdlinepart partitions found on MTD device nand Creating 4 MTD partitions on "nand": 0x000000000000-0x000000080000 : "barebox" 0x000000080000-0x0000000e0000 : "bareboxenv" 0x0000000e0000-0x0000002e0000 : "kernel" 0x0000002e0000-0x000040000000 : "root" s3c24xx-nand s3c2440-nand: clock idle support enabled dm9000 Ethernet Driver, V1.31 dm9000 dm9000: eth%d: Invalid ethernet MAC address. Please set using ifconfig eth0: dm9000e at c487a300,c487c304 IRQ 51 MAC: a6:27:9f:53:9d:ac (random) 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 hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected samsung-ts s3c2440-ts: driver attached, registering input device input: S3C24XX TouchScreen as /devices/virtual/input/input0 input: pwm-beeper as /devices/platform/s3c24xx-pwm.0/pwm-beeper/input/input1 S3C24XX RTC, (c) 2004,2006 Simtec Electronics s3c-rtc s3c2410-rtc: rtc disabled, re-enabling s3c-rtc s3c2410-rtc: rtc core: registered s3c as rtc0 cpuidle: using governor ladder s3c-sdi s3c2440-sdi: powered down. s3c-sdi s3c2440-sdi: mmc0 - using pio, hw SDIO IRQ TCP cubic registered NET: Registered protocol family 17 s3c-rtc s3c2410-rtc: setting system clock to 2000-01-04 02:05:54 UTC (946951554) dm9000 dm9000: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 IP-Config: Complete: device=eth0, addr=192.168.1.156, mask=255.255.255.0, gw=192.168.1.1, host=192.168.1.156, domain=, nis-domain=(none), bootserver=192.168.1.232, rootserver=192.168.1.232, rootpath= VFS: Mounted root (jffs2 filesystem) on device 31:3. devtmpfs: mounted Freeing init memory: 104K init started: BusyBox v1.18.5 (2012-10-03 17:51:06 IST) starting pid 267, tty '/dev/console': '/etc/init.d/rcS' mounting filesystems...done. running rc.d services... Starting telnetd... starting network interfaces... ip: RTNETLINK answers: File exists loading modules /etc/rc.d/S99startup: line 12: /usr/bin/qt4-demo: not found starting pid 291, tty '/dev/console': '/sbin/getty -L 115200 ttySAC0 vt100' Here is the complete log. I am using mini2440 1GB nand Flash. I have chosen 128M configuration in pengutronics. One more thing I wanted to know is How to run led program with the newer kernel? for ex. I want to test led/pwm, linux from friendly arm comes with the sample example. If I try to compile the same program then it gives me ioctl error, as ioctl has been removed in newer kernel. --ioctl error -- 190:5: error: unknown field 'ioctl' specified in initializer All my intention is to use pengutronics BSP for mini2440 and at the same time I want to run led and pwm example from user space using ioctl method, to turn led on/off rathar than from /sys/class interface. Please guide me in right direction. Thank You for your time.
Dear all, I need help from you all. I am new and started working on board/kit (ARM9 s3c2410,smdk2410,ARM902T,64MB Flash.) I am trying to transplant U-boot 2012.10 to this samsung s3c2410 board. I am not able to do this. Can you help me with any doucment how to do this. Can you provide if you have any U-boot.bin file for this board. Any Uboot source code modified to run on this board. kindly help me i am struggling for one year for this. mail id:aprakash@ueic.com