Loading kernel issues

Javier Fileiv javier.fileiv at gmail.com
Sun Oct 16 14:06:15 PDT 2016


Hi everyone, I've just flashed barebox on my Mini2440. I have 2
questions/issues now

1) When trying to load the kernel from TFTP, everything is ok but when
it's trying to mount the rootfs something is not working, even though
I set the rootdelay param to 5 secs.

2) I tried also the boot from nand and is working just fine, but there
no is auto boot when reseting the board... it just give me the barebox
prompt each time, and if i run from there boot nand it works OK, but
no automaGically. :)

Any suggestions? Thank you very much


LOG FOR TFTP BOOT:

mini2440:/ boot tftp
warning: No MAC address set. Using random address A2:50:1F:24:DF:AB
phy0: Link is up - 100/Full
T DHCP client bound to address 192.168.0.15
TFTP from server 192.168.0.10 ('uImage-mini2440' -> '/dev/ram0.kernel')
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
################################################
booting kernel of type uimage from /dev/ram0.kernel
   Verifying Checksum ... OK
   Image Name:   Linux-3.16.7-ptx-master
   Created:      2016-10-13  20:23:14 UTC
   Image Type:   <NULL> <NULL> <NULL> (<NULL>)
   Data Size:    1910288 Bytes =  1.8 MB
   Load Address: 30008000
   Entry Point:  30008000
OK
commandline: console=ttySAC0,115200 mini2440=0tbc rootdelay=5 ip=dhcp
root=/dev/nfs nfsroot=/path/to/nfs/root,v3,tcp noinitrd
mtdparts=nand:512k(barebox),384k(bareboxenv),2048k(kernel),-(root)
arch_number: 1999

Starting kernel ...

Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpu
Linux version 3.16.7-ptx-master (fixp at fixp-XPS13-9333) (gcc version
4.9.2 (OSELAS.Toolchain-2014.12.0) ) #1 PREEMPT Thu Oct 13 21:51:02
CEST 2016
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c000717f
CPU: VIVT data cache, VIVT instruction cache
Machine: MINI2440
Memory policy: Data cache writeback
CPU S3C2440A (id 0x32440001)
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: console=ttySAC0,115200 mini2440=0tbc rootdelay=5
ip=dhcp root=/dev/nfs nfsroot=/path/to/nfs/root,v3,tcp noinitrd
mtdparts=nand:512k(barebox),384k(bareboxenv),2048k(kernel),-(root)
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: 60920K/65536K available (3043K kernel code, 174K rwdata, 496K
rodata, 127K init, 140K bss, 4616K reserved)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
    vmalloc : 0xc4800000 - 0xff000000   ( 936 MB)
    lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc037cdcc   (3540 kB)
      .init : 0xc037d000 - 0xc039cff4   ( 128 kB)
      .data : 0xc039e000 - 0xc03c9b80   ( 175 kB)
       .bss : 0xc03c9b8c - 0xc03ecc48   ( 141 kB)
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
Dump stacks of tasks blocking RCU-preempt GP.
NR_IRQS:103
S3C2440: IRQ Support
irq: clearing pending status 00000080
irq: clearing pending status 00000003
irq: clearing pending status 00000002
sched_clock: 16 bits at 1012kHz, resolution 987ns, wraps every 64725925ns
Calibrating delay loop... 201.52 BogoMIPS (lpj=503808)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x302ff560 - 0x302ff59c
devtmpfs: initialized
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
MINI2440: Option string mini2440=0tbc
MINI2440: LCD
 [0:240x320] 1:800x480
 2:1024x768 3:240x320
 4:640x480 5:240x320
 6:320x240 7:480x272

S3C2440: Initialising architecture
S3C24XX DMA Driver, Copyright 2003-2006 Simtec Electronics
DMA channel 0 at c4846000, irq 33
DMA channel 1 at c4846040, irq 34
DMA channel 2 at c4846080, irq 35
DMA channel 3 at c48460c0, irq 36
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.0: slave address 0x10
s3c-i2c s3c2440-i2c.0: bus frequency set to 98 KHz
s3c-i2c s3c2440-i2c.0: i2c-0: S3C I2C adapter
S3C24XX CPU Frequency driver, s3c244x cpu support
Advanced Linux Sound Architecture Driver Initialized.
Switched to clocksource samsung_clocksource_timer
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
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
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
s3c-adc s3c24xx-adc: attached adc driver
futex hash table entries: 256 (order: -1, 3072 bytes)
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 118
io scheduler noop registered
io scheduler cfq registered (default)
s3c2410-lcd s3c2410-lcd: fb0: s3c2410fb frame buffer device
s3c2440-uart.0: ttySAC0 at MMIO 0x50000000 (irq = 74, base_baud = 0)
is a S3C2440
console [ttySAC0] enabled
s3c2440-uart.1: ttySAC1 at MMIO 0x50004000 (irq = 77, base_baud = 0)
is a S3C2440
s3c2440-uart.2: ttySAC2 at MMIO 0x50008000 (irq = 80, base_baud = 0)
is a S3C2440
at24 0-0050: 1024 byte 24c08 EEPROM, writable, 16 bytes/write
s3c24xx-nand s3c2440-nand: Tacls=1, 9ns Twrph0=3 29ns, Twrph1=2 19ns
s3c24xx-nand s3c2440-nand: NAND hardware ECC
nand: device found, Manufacturer ID: 0xec, Chip ID: 0xd3
nand: Samsung NAND 1GiB 3,3V 8-bit
nand: 1024MiB, SLC, page size: 2048, OOB size: 64
Bad block table found at page 524224, version 0x01
Bad block table found at page 524160, version 0x01
nand_read_bbt: bad block at 0x0000255a0000
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
eth0: dm9000e at c48e2300,c48e4304 IRQ 55 MAC: a2:50:1f:24:df:ab (chip)
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-s3c2410: OHCI S3C2410 driver
s3c2410-ohci s3c2410-ohci: OHCI Host Controller
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
usbcore: registered new interface driver usb-storage
samsung-ts s3c2440-ts: driver attached, registering input device
input: S3C24XX TouchScreen as /devices/virtual/input/input0
input: pwm-beeper as /devices/platform/samsung-pwm/pwm-beeper/input/input1
s3c-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq disabled
s3c-sdi s3c2440-sdi: running at 0kHz (requested: 0kHz).
s3c-sdi s3c2440-sdi: running at 398kHz (requested: 400kHz).
s3c-sdi s3c2440-sdi: mmc0 - using pio, hw SDIO IRQ
s3c-sdi s3c2440-sdi: powered down.
S3C24XX_UDA134X SoC Audio driver
soc-audio soc-audio: ASoC: machine S3C24XX_UDA134X should use
snd_soc_register_card()
UDA134X SoC Audio Codec
soc-audio soc-audio: uda134x-hifi <-> s3c24xx-iis mapping ok
TCP: cubic registered
NET: Registered protocol family 17
input: gpio-keys as /devices/platform/gpio-keys/input/input2
s3c-rtc s3c2410-rtc: setting system clock to 2000-01-01 00:30:21 UTC (946686621)
dm9000 dm9000 eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
Sending DHCP requests ., OK
IP-Config: Got DHCP answer from 192.168.0.254, my address is 192.168.0.15
IP-Config: Complete:
     device=eth0, hwaddr=a2:50:1f:24:df:ab, ipaddr=192.168.0.15,
mask=255.255.255.0, gw=192.168.0.254
     host=192.168.0.15, domain=, nis-domain=(none)
     bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath=
     nameserver0=212.27.40.240, nameserver1=212.27.40.241
ALSA device list:
  #0: S3C24XX_UDA134X
Waiting 5 sec before mounting root device...
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
1f00             512 mtdblock0  (driver?)
1f01             384 mtdblock1  (driver?)
1f02            2048 mtdblock2  (driver?)
1f03         1045632 mtdblock3  (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
CPU: 0 PID: 1 Comm: swapper Not tainted 3.16.7-ptx-master #1
Backtrace:
Function entered at [<c000c288>] from [<c000c538>]
 r6:c3fedcc0 r5:c03ca4a8 r4:fffffffa r3:00204140
Function entered at [<c000c520>] from [<c02fbc20>]
Function entered at [<c02fbc00>] from [<c02f9fb8>]
Function entered at [<c02f9f24>] from [<c037e118>]
 r3:60000013 r2:00000000 r1:c3833ec0 r0:c0327087
 r7:c0327123
Function entered at [<c037df14>] from [<c037e244>]
 r10:00000000 r9:c03c9ba0 r8:c03c9ba0 r7:00000000 r6:c03c9bc8 r5:c03a7d68
 r4:00200000
Function entered at [<c037e15c>] from [<c037e390>]
 r7:c039cff0 r6:c039753c r5:c0397560 r4:c03c9bc8
Function entered at [<c037e26c>] from [<c037dccc>]
 r5:00000061 r4:00000008
Function entered at [<c037db58>] from [<c02f9000>]
 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c02f8ff0 r4:00000000
Function entered at [<c02f8ff0>] from [<c0009330>]
 r4:00000000 r3:c3832000
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on
unknown-block(2,0)



More information about the barebox mailing list