Android Tablets Forum banner

custom kernel - does exist - incomplete

27K views 58 replies 14 participants last post by  mjsmith 
#1 · (Edited by Moderator)
If anyone with kernel hacking experience would like to help me out, I'd really appreciate it. I'm looking at one of two repos to use as a base right now, but maybe there's a better one somewhere.

https://github.com/tom3q/spica-2.6.38
https://github.com/CyanogenMod/cm-kernel

My thinking that I should spend my time working on getting a kernel newer than 2.6.29 to work. Feel free to disagree. I'm still very much learning, but I do have a good start and kind of know my way around. (Learning is fun!)

I can test kernels at will due to the hard work done by RobertBrownNZ and others in this thread - http://www.slatedroid.com/index.php?/topic/10492-con4-the-quest-to-trace-it-jtag-something-else/.

So far, I've looked in /dev on a running WPDN and grabbed the list of devices, looked at the kernel logs to see what is initiated in there, cloned both of those repos, and compiled them successfully. Neither would boot 'out of the box', but I expected as much. They were recognized by the bootloader as valid images though. I used the s3c6400_defconfig and compiled with the uImage option, since it appears that our kernel is in that format.

I'll actually clone one or more of those repos to my github profile soon, so we will have an accessible repo to work with.

Any thoughts?
 
See less See more
#2 · (Edited by Moderator)
There's also the samsung tree in the android repo, just in case you don't have enough source code yet


http://android.git.kernel.org/?p=kernel/samsung.git

It seems that the .config isn't built in (it's /proc/config.gz isn't it?). Thanks for nothing, Pandigital.

Anyway, I'd be really keen to see some progress in this area. I'll be watching with interest (and, knowing me, sticking my oar in
)
 
#3 ·
Thanks for the link! I'm looking for a good place to start that will enable us to get this working with the least amount of work. That one looks promising.

No, the .config isn't there. See, Pandigital wants us to learn more by having to reverse-engineer as much as possible. We wouldn't learn anything if they just gave it to us! They are just acting in our best interests.
 
#7 ·
Honestly, I've only spent a few hours on it. I have too many things going on at once, but my C class will be over in early May. That will free up some time and has already helped me to understand what's going on a lot better. I will get back to it though. If you make any progress, let me know. I've forked the 2.6.38 Spica kernel and started from there. There's a def config for the smdk64xx in there. It compiles just fine. Of course, it doesn't boot. It's a lot smaller than the stock kernel, so I'm sure it's missing some needed things...
 
#9 · (Edited by Moderator)
I'll try and flash it again this weekend and see. If I remember correctly, the bootloader found the kernel image and then hung up. Now, I have not been able to enable the YAFFS fs via the .config file, so that might be the issue there. It seems to me that would be important.

I've cut and pasted the YAFFS config options from a .config for my phone's kernel and made sure that 'misc file systems' were enabled. I've also double checked the Kconfig in fs/ and everything seems right. What I need to do is start over, make these changes, and commit them to the github repo (https://github.com/gnarlyc/spica-2.6.38) so that you all can see them. It's probably something 'simple'.

(Oddly enough... My PDN is back together and I'm using it to read a book. I know, it's strange, but I'll fix the situation this weekend.)
 
#10 · (Edited by Moderator)
To get YAFFS2 to show up, you need to enable "Memory Technology Device (MTD) support" in the "Device Drivers" section, and under that you need "Caching block device access to MTD devices". It'll also need OneNAND support of some kind.

If you get the "uncompressing the kernel" message but nothing after that, then I think the kernel's not really booting at all. Once again I seem to remember some oddity with load addresses, might be worth looking into.

Please add your .config to github. I've cloned your repo, and I'm quite keen to play with this
 
#11 ·
I used arch/arm/config/s3c6400_defconfig as a base. I pushed my modified version to the root folder, which does allow it to compile but doesn't have all of the needed options enabled.

It's nice to hear that you want to take a stab too. I can certainly use any help.
 
#15 · (Edited by Moderator)
I wonder if it's one of these?

#
# Kernel Features
#
CONFIG_VMSPLIT_3G=y
# CONFIG_VMSPLIT_2G is not set
# CONFIG_VMSPLIT_1G is not set
CONFIG_PAGE_OFFSET=0xC0000000

#
# Boot options
#
CONFIG_ZBOOT_ROM_TEXT=0x0
CONFIG_ZBOOT_ROM_BSS=0x0
CONFIG_CMDLINE="console=ttySAC0,115200 root=/dev/ram init=/linuxrc initrd=0x51000000,6M ramdisk_size=6144"
 
#18 ·
No, and no.

My final exam for my class was this morning. So, I should be able to jump back in to this and the other kernel that I'm helping with/working on (Droid Eris)... (Assuming that my PDN will boot, but that's another story.
I know. I know.)
 
#19 · (Edited by Moderator)
Code:
## Loading init Ramdisk from Legacy Image at 50ffffc0 ...<br />
ramdisk start = 0x51000000, ramdisk end = 0x5102756c<br />
Transferring control to Linux (at address 50008000) ...<br />
<br />
Starting kernel ...<br />
<br />
[URL=machid:1626]machid:1626[/URL], address of boot params:0x50000100
haha that's where I'm at too trying to move forward. Thought I'd bump this old thread because there is some useful info in here

*uboot passes kernel arguments along and so far in my experiments it looks like it's best to leave the kernel cmd line empty and let uboot do it's thing.

there is a limit to the size of an uncompressed zimage - the ramdisk image is what should be used as an initrd

Look at your Image file in the boot folder after you've compiled if it's bigger than 6mb your zImage/uImage will be too big to work and uboot will say "error out of size"
 
#20 · (Edited by Moderator)
Might be making some progress. I think that the tty console setting isn't working it's not outputting kernel messages to the serial link which is why it's "stuck" here:
## Loading init Ramdisk from Legacy Image at 50ffffc0 ...
ramdisk start = 0x51000000, ramdisk end = 0x510276f3
Transferring control to Linux (at address 50008000) ...

Starting kernel ...

machid:1626, address of boot params:0x50000100

my last compile goes to that and then the screen goes all groovy purple with lines which leads me to believe that the kernel does take control

makefile.boot specifies the correct params address and zreladdr
zreladdr-y := 0x50008000
params_phys-y := 0x50000100
 
#22 ·
I attached the boot log I did last year on a Cruz R101 for your reference.
It was based on uboot 1.3.4 and tom3q/spica-3.0 kernel. It should be very similar to WPDN.

U-Boot 1.3.4 (Oct 27 2011 - 18:40:16) for CRUZ R101

CPU: S3C6410@532MHz
Fclk = 532MHz, Hclk = 133MHz, Pclk = 66MHz
Serial = CLKUART (SYNC Mode)
Board: Cruz R101
I2C: Ready
DRAM: 256 MB
SD CH0: 7580 MB (SDHC)
SD CH1: 3782 MB (SDHC)
OneNAND: 256 MB (2048 * 128 KB)
*** Warning - using default environment

[[[[[[[[[[ Booting from OneNand ]]]]]]]]]]

In: serial
Out: serial
Err: serial
UBOOT # setenv bootargs console=ttySAC1,115200 root=/dev/ram0 rw ramdisk=16384 initrd=0x51000000,16M; dnw 0x51000000 z:\\share\\ramfs.img; dnw 0x50007FC0 z:\\share\\uImage; bootm 0x50007FC0 0x51000000
OTG cable Connected!
Now, Waiting for DNW to transmit data
Download Done!! Download Address: 0x51000000, Download Filesize:0x34b09a
Checksum is being calculated....
Checksum O.K.
Insert a OTG cable into the connector!
OTG cable Connected!
Now, Waiting for DNW to transmit data
Download Done!! Download Address: 0x50007fc0, Download Filesize:0x35a2e8
Checksum is being calculated....
Checksum O.K.
get_format
-------- 1 --------
## Booting kernel from Legacy Image at 50007fc0 ...
Image Name: Linux-3.0.1
Created: 2011-10-28 4:16:30 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3515048 Bytes = 3.4 MB
Load Address: 50008000
Entry Point: 50008000
Verifying Checksum ... OK
get_format
-------- 1 --------
Loading Kernel Image ... OK
OK
get_format
-------- 0 --------
Wrong Ramdisk Image Format

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Initializing cgroup subsys cpu
Linux version 3.0.1 (mxma@Fc14) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #1 PREEMPT Thu Oct 27 21:14:20 PDT 2011
CPU: ARMv6-compatible processor [410fb766] revision 6 (ARMv7), cr=00c5387f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: CRUZ R101
Memory policy: ECC disabled, Data cache writeback
CPU S3C6410 (id 0x36410101)
S3C24XX Clocks, Copyright 2004 Simtec Electronics
S3C64XX: PLL settings, A=532000000, M=532000000, E=24000000
S3C64XX: HCLK2=266000000, HCLK=133000000, PCLK=66500000
mout_apll: source is fout_apll (1), rate is 532000000
mout_epll: source is epll (1), rate is 24000000
mout_mpll: source is mpll (1), rate is 532000000
mmc_bus: source is mout_epll (0), rate is 24000000
mmc_bus: source is mout_epll (0), rate is 24000000
mmc_bus: source is mout_epll (0), rate is 24000000
usb-bus-host: source is clk_48m (0), rate is 48000000
uclk1: source is dout_mpll (1), rate is 66500000
lcd: source is mout_epll (1), rate is 24000000
spi-bus: source is mout_epll (0), rate is 24000000
spi-bus: source is mout_epll (0), rate is 24000000
audio-bus: source is mout_epll (0), rate is 24000000
audio-bus: source is mout_epll (0), rate is 24000000
irda-bus: source is mout_epll (0), rate is 24000000
tv_27m: source is clk_27m (0), rate is 27000000
dac_27m: source is clk_27m (0), rate is 27000000
scaler_sclk: source is mout_epll (0), rate is 24000000
mfc_sclk: source is hclk2 (0), rate is 266000000
audio-bus: source is mout_epll (0), rate is 24000000
s3c64xx: 0x02000000 bytes SDRAM reserved for fimc at 0x5dff9000
s3c64xx: 0x01000000 bytes SDRAM reserved for pmem at 0x5cff9000
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
Kernel command line: console=ttySAC1,115200 root=/dev/ram0 rw ramdisk=16384 initrd=0x51000000,16M
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 186828k/186828k available, 75316k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xff600000 - 0xffe00000 ( 8 MB)
vmalloc : 0xd0800000 - 0xf6000000 ( 600 MB)
lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.init : 0xc0008000 - 0xc002d000 ( 148 kB)
.text : 0xc002d000 - 0xc05dfee4 (5836 kB)
.data : 0xc05e0000 - 0xc0616600 ( 218 kB)
.bss : 0xc0616624 - 0xc074cd10 (1242 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
CONFIG_RCU_FANOUT set to non-default value of 8
NR_IRQS:246
VIC @f6000000: id 0x00041192, vendor 0x41
VIC @f6010000: id 0x00041192, vendor 0x41
sched_clock: 32 bits at 11MHz, resolution 90ns, wraps every 387515ms
Console: colour dummy device 80x30
console [ttySAC1] enabled
Calibrating delay loop... 528.79 BogoMIPS (lpj=2643968)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Initializing cgroup subsys cpuacct
Initializing cgroup subsys freezer
CPU: Testing write buffer coherency: ok
print_constraints: dummy:
NET: Registered protocol family 16
ram_console: got buffer at 5fe00000, size 100000
ram_console: found existing buffer, size 19350, start 19350
console [ram-1] enabled
hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
s3c64xx_dma_init: Registering DMA channels
PL080: IRQ 73, at d0804000, channels 0..8
PL080: IRQ 74, at d0806000, channels 8..16
S3C6410: Initialising architecture
s3c-adc s3c64xx-adc: attached adc driver
samsung-pwm s3c64xx-pwm.1: tin at 66500000, tdiv at 66500000, tin=divclk, base 8
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.0: slave address 0x00
s3c-i2c s3c2440-i2c.0: bus frequency set to 64 KHz
s3c-i2c s3c2440-i2c.0: i2c-0: S3C I2C adapter
s3c-i2c s3c2440-i2c.1: slave address 0x00
s3c-i2c s3c2440-i2c.1: bus frequency set to 64 KHz
print_constraints: VAP_ALIVE_1.2V: 1200 mV normal
print_constraints: VAP_OTGI_1.2V: 1200 mV normal
print_constraints: VLED_3.3V: 3300 mV normal
print_constraints: VTF_3.0V: 3000 mV normal
print_constraints: VLCD_1.8V: 1800 mV normal
print_constraints: VLCD_3.0V: 3000 mV normal
print_constraints: VAP_OTG_3.3V: 3300 mV normal
print_constraints: VAP_SYS_3.0V: 3000 mV normal
print_constraints: VAP_ARM: 750 <--> 1500 mV at 1100 mV normal
print_constraints: VAP_CORE_1.3V: 750 <--> 1500 mV at 1200 mV normal
print_constraints: VAP_MEM_1.8V: 1800 mV normal
s3c-i2c s3c2440-i2c.1: i2c-1: S3C I2C adapter
Advanced Linux Sound Architecture Driver Version 1.0.24.
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource s3c64xx_clksrc
Switched to NOHz mode on CPU #0
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
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.
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 16384K
audit: initializing netlink socket (disabled)
type=2000 audit(0.589:1): initialized
ashmem: initialized
nfs4filelayout_init: NFSv4 File Layout Driver Registering...
fuse init (API version 7.16)
yaffs: yaffs built Oct 27 2011 21:10:48 Installing.
msgmni has been set to 396
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered (default)
io scheduler deadline registered
io scheduler cfq registered
===> Set LCD power : 1
Console: switching to colour frame buffer device 100x37
s3c-fb s3c-fb: window 0: fb
s3c6400-uart.0: ttySAC0 at MMIO 0x7f005000 (irq = 16) is a S3C6400/10
s3c6400-uart.1: ttySAC1 at MMIO 0x7f005400 (irq = 20) is a S3C6400/10
s3c6400-uart.2: ttySAC2 at MMIO 0x7f005800 (irq = 24) is a S3C6400/10
s3c6400-uart.3: ttySAC3 at MMIO 0x7f005c00 (irq = 28) is a S3C6400/10
brd: module loaded
loop: module loaded
pmem: 1 init
pmem_gpu1: 1 init
mtdoops: mtd device (mtddev=name/number) must be supplied
OneNAND Manufacturer: Samsung (0xec)
Muxed OneNAND 256MB 1.8V 16-bit (0x40)
OneNAND version = 0x0121
Chip support all block unlock
Chip has 2 plane
Scanning device for bad blocks
OneNAND eraseblock 391 is an initial bad block
s3c6410-onenand s3c6410-onenand.0: OneNAND Sync. Burst Read enabled
Creating 9 MTD partitions on "(null)":
0x000000000000-0x000000200000 : "bootloader"
0x000000200000-0x000000a00000 : "kernel"
0x000000a00000-0x000000b00000 : "id"
0x000000b00000-0x000001300000 : "recovery"
0x000001300000-0x000001500000 : "logo"
0x000001500000-0x000001800000 : "ramdisk"
0x000001800000-0x000009800000 : "system"
0x000009800000-0x00000ba00000 : "cache"
0x00000ba00000-0x000010000000 : "userdata"
usbcore: registered new interface driver rt2800usb
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 79, io mem 0x74300000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
s3c-hsotg s3c-hsotg: regs d0820000, irq 90
android init
android_probe pdata: c05e9528
android_bind
android_bind_config
android_usb gadget: android_usb ready
s3c-hsotg s3c-hsotg: Enabling HSOTG.
s3c-hsotg s3c-hsotg: shared fifos
s3c-hsotg s3c-hsotg: S3C_GINTSTS_USBSusp
s3c-hsotg s3c-hsotg: bound driver android_usb
f_adb init
android_register_function adb
f_mass_storage init
fsg_probe pdev: c05e85b0, pdata: c05e9518
android_register_function usb_mass_storage
android_usb gadget: Mass Storage Function, version: 2009/09/11
android_usb gadget: Number of LUNs=2
lun0: LUN: removable file: (no medium)
lun1: LUN: removable file: (no medium)
adb_bind_config
f_rndis init
android_register_function rndis
mousedev: PS/2 mouse device common for all mice
input: gpio-keys as /devices/platform/gpio-keys.0/input/input0
samsung-ts s3c64xx-ts: driver attached, registering input device
input: S3C24XX TouchScreen as /devices/virtual/input/input1
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c-rtc s3c64xx-rtc: rtc disabled, re-enabling
using rtc device, s3c, for alarms
s3c-rtc s3c64xx-rtc: rtc core: registered s3c as rtc0
i2c /dev entries driver
Linux video capture interface: v2.00
s3c-g2d s3c-g2d: driver loaded succesfully.
s3c-g3d s3c-g3d: detected FIMG-3DSE version 1.5.0
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.20.0-ioctl (2011-02-02) initialised: dm-devel@redhat.com
cpufreq: Failed to configure frequency table: -22
cpuidle: using governor ladder
cpuidle: using governor menu
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
s3c-sdhci s3c-sdhci.0: clock source 0: hsmmc (133000000 Hz)
s3c-hsotg s3c-hsotg: s3c_hsotg_irq: USBRst
s3c-sdhci s3c-sdhci.0: clock source 1: hsmmc (133000000 Hz)
s3c-sdhci s3c-sdhci.0: clock source 2: mmc_bus (24000000 Hz)
mmc0: SDHCI controller on samsung-hsmmc [s3c-sdhci.0] using ADMA
s3c-sdhci s3c-sdhci.1: clock source 0: hsmmc (133000000 Hz)
s3c-sdhci s3c-sdhci.1: clock source 1: hsmmc (133000000 Hz)
s3c-sdhci s3c-sdhci.1: clock source 2: mmc_bus (24000000 Hz)
mmc1: no vmmc regulator found
mmc1: SDHCI controller on samsung-hsmmc [s3c-sdhci.1] using ADMA
logger: created 256K log 'log_main'
logger: created 256K log 'log_events'
logger: created 256K log 'log_radio'
logger: created 256K log 'log_system'
s3c-hsotg s3c-hsotg: new device is high-speed
asoc: ssm2602-hifi <-> samsung-i2s.1 mapping ok
ALSA device list:
#0: SSM2602
IPv4 over IPv4 tunneling driver
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 15
lib80211: common routines for IEEE802.11 drivers
lib80211_crypt: registered algorithm 'NULL'
Registering the dns_resolver key type
VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
regulator_init_complete: VLCD_3.0V: incomplete constraints, leaving on
regulator_init_complete: VLCD_1.8V: incomplete constraints, leaving on
init_for_xceiv: No OTG transceiver found
mmc0: new high speed SDHC card at address cb98
s3c-rtc s3c64xx-rtc: setting system clock to 2010-05-01 00:12:45 UTC (1272672765)
mmcblk0: mmc0:cb98 SU08G 7.40 GiB
mmcblk0: p1
usb 1-1: new full speed USB device number 2 using s3c2410-ohci
RAMDISK: gzip image found at block 0
s3c-hsotg s3c-hsotg: s3c_hsotg_irq: USBRst
s3c-hsotg s3c-hsotg: new device is high-speed
mmc1: new SDHC card at address e398
mmcblk1: mmc1:e398 SU04G 3.69 GiB
mmcblk1: p1
s3c-hsotg s3c-hsotg: new address 2
android_usb gadget: high speed config #1: android
usb 1-1: reset full speed USB device number 2 using s3c2410-ohci
ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
EXT4-fs (ram0): couldn't mount as ext3 due to feature incompatibilities
EXT4-fs (ram0): mounting ext2 file system using the ext4 subsystem
EXT4-fs (ram0): mounted filesystem without journal. Opts: (null)
VFS: Mounted root (ext2 filesystem) on device 1:0.
Freeing init memory: 148K

cruz login: root
Password:
May 1 00:12:52 login[746]: root login on 'ttySAC1'

~ #
 
#30 · (Edited by Moderator)
ahahahahahahahahahahah sweet I saw me a cute little tux!

Loading Kernel Image ... OK
OK
flag:0
## No init Ramdisk
ramdisk start = 0x00000000, ramdisk end = 0x00000000
Transferring control to Linux (at address 50008000) ...

Starting kernel ...

machid:1626, address of boot params:0x50000100
Uncompressing Linux... done, booting the kernel.
Initializing cgroup subsys cpu
Linux version 3.0.1 (mxma@Fc14) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #1 PREEMPT Fri Feb 10 13:27:33 PST 2012
CPU: ARMv6-compatible processor [410fb766] revision 6 (ARMv7), cr=00c5387f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: CRUZ R101
Ignoring unrecognised tag 0x41001099
Memory policy: ECC disabled, Data cache writeback
CPU S3C6410 (id 0x36410101)
S3C24XX Clocks, Copyright 2004 Simtec Electronics
S3C64XX: PLL settings, A=800000000, M=532000000, E=24000000
S3C64XX: HCLK2=266666666, HCLK=133333333, PCLK=66666666
mout_apll: source is fout_apll (1), rate is 800000000
mout_epll: source is epll (1), rate is 24000000
mout_mpll: source is mpll (1), rate is 532000000
mmc_bus: source is mout_epll (0), rate is 24000000
mmc_bus: source is mout_epll (0), rate is 24000000
mmc_bus: source is mout_epll (0), rate is 24000000
usb-bus-host: source is clk_48m (0), rate is 48000000
uclk1: source is dout_mpll (1), rate is 66500000
lcd: source is mout_epll (1), rate is 24000000
spi-bus: source is mout_epll (0), rate is 24000000
spi-bus: source is mout_epll (0), rate is 24000000
audio-bus: source is mout_epll (0), rate is 24000000
audio-bus: source is mout_epll (0), rate is 24000000
irda-bus: source is mout_epll (0), rate is 24000000
tv_27m: source is clk_27m (0), rate is 27000000
dac_27m: source is clk_27m (0), rate is 27000000
scaler_sclk: source is mout_epll (0), rate is 24000000
mfc_sclk: source is hclk2 (0), rate is 266666666
audio-bus: source is mout_epll (0), rate is 24000000
s3c64xx: 0x02000000 bytes SDRAM reserved for fimc at 0x5dff9000
s3c64xx: 0x01000000 bytes SDRAM reserved for pmem at 0x5cff9000
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
Kernel command line: console=ttySAC1,115200n8 root=/dev/mmcblk0p2 ro rootwait
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 203212k/203212k available, 58932k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
DMA : 0xff600000 - 0xffe00000 ( 8 MB)
vmalloc : 0xd0800000 - 0xf6000000 ( 600 MB)
lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.init : 0xc0008000 - 0xc002d000 ( 148 kB)
.text : 0xc002d000 - 0xc05dfee4 (5836 kB)
.data : 0xc05e0000 - 0xc0616600 ( 218 kB)
.bss : 0xc0616624 - 0xc074cd10 (1242 kB)
SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
CONFIG_RCU_FANOUT set to non-default value of 8
NR_IRQS:246
VIC @f6000000: id 0x00041192, vendor 0x41
VIC @f6010000: id 0x00041192, vendor 0x41
sched_clock: 32 bits at 11MHz, resolution 90ns, wraps every 386547ms
Console: colour dummy device 80x30
console [ttySAC1] enabled
Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Initializing cgroup subsys cpuacct
Initializing cgroup subsys freezer
CPU: Testing write buffer coherency: ok
print_constraints: dummy:
NET: Registered protocol family 16
ram_console: got buffer at 5fe00000, size 100000
ram_console: no valid data in buffer (sig = 0xffffffff)
console [ram-1] enabled
hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
s3c64xx_dma_init: Registering DMA channels
PL080: IRQ 73, at d0804000, channels 0..8
PL080: IRQ 74, at d0806000, channels 8..16
S3C6410: Initialising architecture
s3c-adc s3c64xx-adc: attached adc driver
samsung-pwm s3c64xx-pwm.1: tin at 66666666, tdiv at 66666666, tin=divclk, base 8
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.0: slave address 0x00
s3c-i2c s3c2440-i2c.0: bus frequency set to 65 KHz
s3c-i2c s3c2440-i2c.0: i2c-0: S3C I2C adapter
s3c-i2c s3c2440-i2c.1: slave address 0x00
s3c-i2c s3c2440-i2c.1: bus frequency set to 65 KHz
print_constraints: VAP_ALIVE_1.2V: 1200 mV normal
print_constraints: VAP_OTGI_1.2V: 1200 mV normal
print_constraints: VLED_3.3V: 3300 mV normal
print_constraints: VTF_3.0V: 3000 mV normal
print_constraints: VLCD_1.8V: 1800 mV normal
print_constraints: VLCD_3.0V: 3000 mV normal
print_constraints: VAP_OTG_3.3V: 3300 mV normal
print_constraints: VAP_SYS_3.0V: 3000 mV normal
print_constraints: VAP_ARM: 750 <--> 1500 mV at 1300 mV normal
print_constraints: VAP_CORE_1.3V: 750 <--> 1500 mV at 1200 mV normal
print_constraints: VAP_MEM_1.8V: 1800 mV normal
s3c-i2c s3c2440-i2c.1: i2c-1: S3C I2C adapter
Advanced Linux Sound Architecture Driver Version 1.0.24.
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource s3c64xx_clksrc
Switched to NOHz mode on CPU #0
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
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.
audit: initializing netlink socket (disabled)
type=2000 audit(0.439:1): initialized
ashmem: initialized
nfs4filelayout_init: NFSv4 File Layout Driver Registering...
fuse init (API version 7.16)
yaffs: yaffs built Feb 10 2012 13:24:10 Installing.
msgmni has been set to 396
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered (default)
io scheduler deadline registered
io scheduler cfq registered
===> Set LCD power : 1
Console: switching to colour frame buffer device 100x37
s3c-fb s3c-fb: window 0: fb
s3c6400-uart.0: ttySAC0 at MMIO 0x7f005000 (irq = 16) is a S3C6400/10
s3c6400-uart.1: ttySAC1 at MMIO 0x7f005400 (irq = 20) is a S3C6400/10
s3c6400-uart.2: ttySAC2 at MMIO 0x7f005800 (irq = 24) is a S3C6400/10
s3c6400-uart.3: ttySAC3 at MMIO 0x7f005c00 (irq = 28) is a S3C6400/10
brd: module loaded
loop: module loaded
pmem: 1 init
pmem_gpu1: 1 init
mtdoops: mtd device (mtddev=name/number) must be supplied
OneNAND Manufacturer: Samsung (0xec)
Muxed OneNAND(DDP) 512MB 1.8V 16-bit (0x58)
OneNAND version = 0x0121
Chip support all block unlock
Chip has 2 plane
Scanning device for bad blocks
s3c6410-onenand s3c6410-onenand.0: OneNAND Sync. Burst Read enabled
Creating 9 MTD partitions on "(null)":
0x000000000000-0x000000200000 : "bootloader"
0x000000200000-0x000000a00000 : "kernel"
0x000000a00000-0x000000b00000 : "id"
0x000000b00000-0x000001300000 : "recovery"
0x000001300000-0x000001500000 : "logo"
0x000001500000-0x000001800000 : "ramdisk"
0x000001800000-0x000009800000 : "system"
0x000009800000-0x00000ba00000 : "cache"
0x00000ba00000-0x000010000000 : "userdata"
usbcore: registered new interface driver rt2800usb
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 79, io mem 0x74300000
s3c2410-ohci s3c2410-ohci: init err (00000000 0000)
ohci_hcd: can't start s3c24xx
s3c2410-ohci s3c2410-ohci: startup error -75
s3c2410-ohci s3c2410-ohci: USB bus 1 deregistered
s3c2410-ohci: probe of s3c2410-ohci failed with error -75
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
s3c-hsotg s3c-hsotg: regs d0820000, irq 90
android init
android_probe pdata: c05e9528
android_bind
android_bind_config
android_usb gadget: android_usb ready
s3c-hsotg s3c-hsotg: Enabling HSOTG.
s3c-hsotg s3c-hsotg: shared fifos
s3c-hsotg s3c-hsotg: S3C_GINTSTS_USBSusp
s3c-hsotg s3c-hsotg: bound driver android_usb
f_adb init
android_register_function adb
f_mass_storage init
fsg_probe pdev: c05e85b0, pdata: c05e9518
android_register_function usb_mass_storage
android_usb gadget: Mass Storage Function, version: 2009/09/11
android_usb gadget: Number of LUNs=2
lun0: LUN: removable file: (no medium)
lun1: LUN: removable file: (no medium)
adb_bind_config
f_rndis init
android_register_function rndis
mousedev: PS/2 mouse device common for all mice
input: gpio-keys as /devices/platform/gpio-keys.0/input/input0
samsung-ts s3c64xx-ts: driver attached, registering input device
input: S3C24XX TouchScreen as /devices/virtual/input/input1
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c-rtc s3c64xx-rtc: rtc disabled, re-enabling
using rtc device, s3c, for alarms
s3c-rtc s3c64xx-rtc: rtc core: registered s3c as rtc0
i2c /dev entries driver
Linux video capture interface: v2.00
s3c-g2d s3c-g2d: driver loaded succesfully.
s3c-g3d s3c-g3d: detected FIMG-3DSE version 1.5.0
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.20.0-ioctl (2011-02-02) initialised: dm-devel@redhat.com
cpuidle: using governor ladder
cpuidle: using governor menu
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
s3c-sdhci s3c-sdhci.0: clock source 0: hsmmc (133333333 Hz)
s3c-sdhci s3c-sdhci.0: clock source 1: hsmmc (133333333 Hz)
s3c-hsotg s3c-hsotg: s3c_hsotg_irq: USBRst
s3c-sdhci s3c-sdhci.0: clock source 2: mmc_bus (24000000 Hz)
mmc0: SDHCI controller on samsung-hsmmc [s3c-sdhci.0] using ADMA
s3c-sdhci s3c-sdhci.1: clock source 0: hsmmc (133333333 Hz)
s3c-hsotg s3c-hsotg: new device is high-speed
s3c-sdhci s3c-sdhci.1: clock source 1: hsmmc (133333333 Hz)
s3c-sdhci s3c-sdhci.1: clock source 2: mmc_bus (24000000 Hz)
mmc1: no vmmc regulator found
mmc1: SDHCI controller on samsung-hsmmc [s3c-sdhci.1] using ADMA
logger: created 256K log 'log_main'
s3c-hsotg s3c-hsotg: s3c_hsotg_irq: USBRst
logger: created 256K log 'log_events'
logger: created 256K log 'log_radio'
logger: created 256K log 'log_system'
s3c-hsotg s3c-hsotg: new device is high-speed
s3c-hsotg s3c-hsotg: new address 4
mmc0: new SDHC card at address 0001
mmcblk0: mmc0:0001 00000 3.73 GiB
asoc: ssm2602-hifi <-> samsung-i2s.1 mapping ok
mmcblk0: p1 p2 p3
ALSA device list:
#0: SSM2602
IPv4 over IPv4 tunneling driver
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 15
lib80211: common routines for IEEE802.11 drivers
android_usb gadget: common->fsg is NULL in fsg_setup at 624
------------[ cut here ]------------
WARNING: at drivers/usb/gadget/f_mass_storage.c:470 fsg_setup+0x108/0x138()
Modules linked in:
[<c003803c>] (unwind_backtrace+0x0/0xf8) from [<c004c368>] (warn_slowpath_common+0x4c/0x64)
[<c004c368>] (warn_slowpath_common+0x4c/0x64) from [<c004c39c>] (warn_slowpath_null+0x1c/0x24)
[<c004c39c>] (warn_slowpath_null+0x1c/0x24) from [<c02dd940>] (fsg_setup+0x108/0x138)
[<c02dd940>] (fsg_setup+0x108/0x138) from [<c02d8f00>] (android_setup_config+0x4c/0x6c)
[<c02d8f00>] (android_setup_config+0x4c/0x6c) from [<c02da8fc>] (composite_setup+0xc74/0x1064)
[<c02da8fc>] (composite_setup+0xc74/0x1064) from [<c02d8250>] (s3c_hsotg_complete_setup+0x1f8/0x418)
[<c02d8250>] (s3c_hsotg_complete_setup+0x1f8/0x418) from [<c02d6994>] (s3c_hsotg_complete_request+0x88/0xe4)
[<c02d6994>] (s3c_hsotg_complete_request+0x88/0xe4) from [<c02d6a18>] (s3c_hsotg_complete_request_lock+0x28/0x4c)
[<c02d6a18>] (s3c_hsotg_complete_request_lock+0x28/0x4c) from [<c02d7d60>] (s3c_hsotg_irq+0x558/0x5a8)
[<c02d7d60>] (s3c_hsotg_irq+0x558/0x5a8) from [<c00905ac>] (handle_irq_event_percpu+0x50/0x1a0)
[<c00905ac>] (handle_irq_event_percpu+0x50/0x1a0) from [<c0090750>] (handle_irq_event+0x54/0x78)
[<c0090750>] (handle_irq_event+0x54/0x78) from [<c0092a78>] (handle_level_irq+0x98/0x138)
[<c0092a78>] (handle_level_irq+0x98/0x138) from [<c00901e0>] (generic_handle_irq+0x34/0x40)
[<c00901e0>] (generic_handle_irq+0x34/0x40) from [<c002d030>] (asm_do_IRQ+0x30/0x84)
[<c002d030>] (asm_do_IRQ+0x30/0x84) from [<c0032ae8>] (__irq_svc+0x48/0xa8)
Exception stack(0xcc82fea8 to 0xcc82fef0)
fea0: c05ef170 c05ef154 60000013 c05ef12c 00000001 00000000
fec0: 00000003 c06178a4 c06178d8 00000037 00000000 00000000 00002ebe cc82fef0
fee0: c004d5d0 c004d46c 60000013 ffffffff
[<c0032ae8>] (__irq_svc+0x48/0xa8) from [<c004d46c>] (vprintk+0x1f0/0x444)
[<c004d46c>] (vprintk+0x1f0/0x444) from [<c0470df0>] (printk+0x20/0x30)
[<c0470df0>] (printk+0x20/0x30) from [<c002424c>] (lib80211_init+0xc/0x20)
[<c002424c>] (lib80211_init+0xc/0x20) from [<c002d3d0>] (do_one_initcall+0x34/0x17c)
[<c002d3d0>] (do_one_initcall+0x34/0x17c) from [<c0008394>] (kernel_init+0x84/0x12c)
[<c0008394>] (kernel_init+0x84/0x12c) from [<c0033818>] (kernel_thread_exit+0x0/0x8)
---[ end trace b9df8fff0afa44d7 ]---
lib80211_crypt: registered algorithm 'NULL'
Registering the dns_resolver key type
VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
regulator_init_complete: VLCD_3.0V: incomplete constraints, leaving on
regulator_init_complete: VLCD_1.8V: incomplete constraints, leaving on
init_for_xceiv: No OTG transceiver found
s3c-rtc s3c64xx-rtc: setting system clock to 2012-02-16 16:22:08 UTC (1329409328)
EXT4-fs (mmcblk0p2): mounting ext3 file system using the ext4 subsystem
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext3 filesystem) readonly on device 179:2.
Freeing init memory: 148K
Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[<c003803c>] (unwind_backtrace+0x0/0xf8) from [<c0470c84>] (panic+0x74/0x1c0)
[<c0470c84>] (panic+0x74/0x1c0) from [<c002d5d8>] (init_post+0xc0/0x138)
[<c002d5d8>] (init_post+0xc0/0x138) from [<c0008400>] (kernel_init+0xf0/0x12c)
[<c0008400>] (kernel_init+0xf0/0x12c) from [<c0033818>] (kernel_thread_exit+0x0/0x8)
Rebooting in 10 seconds..
android_usb gadget: high speed config #1: android
s3c-hsotg s3c-hsotg: s3c_hsotg_irq: USBRst
s3c-hsotg s3c-hsotg: new device is high-speed
s3c-hsotg s3c-hsotg: s3c_hsotg_irq: USBRst
s3c-hsotg s3c-hsotg: new device is high-speed
s3c-hsotg s3c-hsotg: new address 5
s3c-hsotg s3c-hsotg: s3c_hsotg_ep_disable(ep cc8d2ac8)
s3c-hsotg s3c-hsotg: s3c_hsotg_ep_disable(ep cc8d2b14)
android_usb gadget: high speed config #1: android

Restarting Linux version 3.0.1 (mxma@Fc14) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #1 PREEMPT Fri Feb 10 13:27:33ÿ1

I didn't set an init location and I had to run it from memory otherwise I got crc errors weird
 
#31 ·
got further with a ramdisk but it doesn't like where i told it to find root

s3c-rtc s3c64xx-rtc: setting system clock to 2012-02-16 16:52:22 UTC (1 329411142)
mmc1: new SD card at address b319
mmcblk1: mmc1:b319 SU02G 1.84 GiB
mmcblk1: p1
yaffs: dev is 1048576 name is "ram0" rw
yaffs: passed flags ""
yaffs: Attempting MTD mount of 1.0,"ram0"
yaffs: dev is 1048576 name is "ram0" rw
yaffs: passed flags ""
yaffs: Attempting MTD mount of 1.0,"ram0"
List of all partitions:
1f00 2048 mtdblock0 (driver?)
1f01 8192 mtdblock1 (driver?)
1f02 1024 mtdblock2 (driver?)
1f03 8192 mtdblock3 (driver?)
1f04 2048 mtdblock4 (driver?)
1f05 3072 mtdblock5 (driver?)
1f06 131072 mtdblock6 (driver?)
1f07 34816 mtdblock7 (driver?)
1f08 71680 mtdblock8 (driver?)
b300 3917824 mmcblk0 driver: mmcblk
b301 2667968 mmcblk0p1 00000000-0000-0000-0000-000000000mmcbl k0p1
b302 1000000 mmcblk0p2 00000000-0000-0000-0000-000000000mmcbl k0p2
b303 249855 mmcblk0p3 00000000-0000-0000-0000-000000000mmcbl k0p3
b308 1931264 mmcblk1 driver: mmcblk
b309 1931263 mmcblk1p1 00000000-0000-0000-0000-000000000mmcbl k1p1
No filesystem could mount root, tried: ext3 ext2 ext4 vfat msdos fuseb lk yaffs yaffs2
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-blo ck(1,0)
 
#34 ·
That could be. I did modify the uboot on my side. If you loader has the size limit, could you separate the kernel file into 2 or more files (at 128K boundary) and then flash them one by one ? I am not sure if my uboot will work on your WPDN because I have no WPDN to try. If a bad uboot is flashed, the only way I know is to use JTAG for recovery. (I did that several times).
 
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top