[Galaxy 3 Android Development] hillbeast:
Latest update:

I've just spent all day redoing the entire s5p6442 branch, and renaming the repository, starting a new branch, entering the code again so it is clean and not full of weirdness, and FINALLY got it back up and running.

Latest UART output:

Uncompressing Linux... done, booting the kernel.
<6>Booting Linux on physical CPU 0
<6>Initializing cgroup subsys cpuset
<6>Initializing cgroup subsys cpu
<5>Linux version 3.4.0-rc6+ (hillbeast@kyorabuilder) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #Test Mon Jul 30 17:10:34 NZST 2012
CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: SMDK6442
Memory policy: ECC disabled, Data cache writeback
CPU S5P6442 (id 0x36442000)
<7>s5p6442_init_clocks: initializing clocks
<6>S3C24XX Clocks, Copyright 2004 Simtec Electronics
<7>s5p6442_setup_clocks: registering clocks
<7>s5p6442_setup_clocks: xtal is 12000000
<6>S5P6442: PLL settings, A=667000000, M=166000000, E=48000000<6>mout_apll: source is fout_apll (1), rate is 667000000
<6>mout_mpll: source is fout_mpll (1), rate is 166000000
<6>mout_epll: source is fout_epll (1), rate is 48000000
<6>mout_arm: source is mout_apll (1), rate is 667000000
<6>mout_d0: source is mout_mpll (1), rate is 166000000
<6>mout_d0sync: source is mout_d0 (1), rate is 166000000
<6>mout_d1: source is mout_mpll (1), rate is 166000000
<6>mout_d1sync: source is mout_d1 (1), rate is 166000000
<6>dout_a2m: source is fout_apll (1), rate is 667000000
<6>dout_apll: source is mout_apll (1), rate is 667000000
<6>hclkd1: source is mout_d1 (1), rate is 166000000
<6>hclkd0: source is mout_d0 (1), rate is 166000000
<6>pclkd0: source is mout_d0 (1), rate is 83000000
<6>pclkd1: source is mout_d1 (1), rate is 83000000
<6>S5P6442: HCLKD0=166000000, HCLKD1=166000000, PCLKD0=166000000, PCLKD1=166000000
<7>On node 0 totalpages: 65536
<7>free_area_init_node: node 0, pgdat c06a2c70, node_mem_map c0880000
<7> Normal zone: 512 pages used for memmap
<7> Normal zone: 0 pages reserved
<7> Normal zone: 65024 pages, LIFO batch:15
<7>pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
<7>pcpu-alloc: [0] 0
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
<5>Kernel command line: console=ttySAC1,115200 lpj=1662976 version=Sbl(1.0.0) 2010-10-27 17:10:33
<6>PID hash table entries: 1024 (order: 0, 4096 bytes)
<6>Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
<6>Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
<6>allocated 524288 bytes of page_cgroup
<6>please try 'cgroup_disable=memory' option if you don't want memory cgroups
<6>Memory: 256MB = 256MB total
<5>Memory: 250596k/250596k available, 11548k reserved, 0K highmem
<5>Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xd0800000 - 0xff000000 ( 744 MB)
lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc061d000 (6228 kB)
.init : 0xc061d000 - 0xc0660000 ( 268 kB)
.data : 0xc0660000 - 0xc06a5c18 ( 280 kB)
.bss : 0xc06a5c3c - 0xc087fd64 (1897 kB)
<6>SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
<6>NR_IRQS:144
<6>VIC @f6000000: id 0x00041192, vendor 0x41
<6>VIC @f6010000: id 0x00041192, vendor 0x41
<6>VIC @f6020000: id 0x00041192, vendor 0x41
<3>vic_register: too few VICs, increase CONFIG_ARM_VIC_NR
<7>timer tcon=00500000, tcnt 21c5c, tcfg 00000201,00010000, usec 00000941
<6>sched_clock: 32 bits at 200 Hz, resolution 5000000ns, wraps every 4294967291ms
<6>Console: colour dummy device 80x30
<6>Calibrating delay loop (skipped) preset value.. <c>665.19 BogoMIPS (lpj=1662976)
<6>pid_max: default: 32768 minimum: 301
<6>Security Framework initialized
<6>AppArmor: AppArmor initialized
<6>Mount-cache hash table entries: 512
<6>Initializing cgroup subsys cpuacct
<6>Initializing cgroup subsys memory
<6>Initializing cgroup subsys devices
<6>Initializing cgroup subsys freezer
<6>Initializing cgroup subsys blkio
<6>Initializing cgroup subsys perf_event
<6>CPU: Testing write buffer coherency: ok
<6>ftrace: allocating 17527 entries in 52 pages
<6>hw perfevents: enabled with v6 PMU driver, 3 counters available
<6>Setting up static identity map for 0x2049ebb0 - 0x2049ec0c
<6>devtmpfs: initialized
<6>EVM: security.selinux
<6>EVM: security.SMACK64
<6>EVM: security.capability
<4>------------[ cut here ]------------
<4>WARNING: at drivers/gpio/gpio-samsung.c:2968 samsung_gpiolib_init+0x70/0x98()
Unknown SoC in gpio-samsung, no GPIOs added
<d>Modules linked in:
Backtrace:
[<c000ca50>] (dump_backtrace+0x0/0x114) from [<c04925a8>] (dump_stack+0x20/0x24)
r6:00000b98 r5:c063776c r4:cf82df40
[<c0492588>] (dump_stack+0x0/0x24) from [<c001cc98>] (warn_slowpath_common+0x5c/0x74)
[<c001cc3c>] (warn_slowpath_common+0x0/0x74) from [<c001cd68>] (warn_slowpath_fmt+0x40/0x48)
r8:00000000 r7:c06376fc r6:c06a5c40 r5:c06456d0 r4:c02a4b38
[<c001cd28>] (warn_slowpath_fmt+0x0/0x48) from [<c063776c>] (samsung_gpiolib_init+0x70/0x98)
r3:c068c28c r2:c05c86ec
[<c06376fc>] (samsung_gpiolib_init+0x0/0x98) from [<c0008714>] (do_one_initcall+0x130/0x198)
r4:cf82c000
[<c00085e4>] (do_one_initcall+0x0/0x198) from [<c061d990>] (kernel_init+0x114/0x1d4)
[<c061d87c>] (kernel_init+0x0/0x1d4) from [<c0020a14>] (do_exit+0x0/0x7b8)
<4>---[ end trace da227214a82491b7 ]---
<6>dummy:
<6>NET: Registered protocol family 16
<6>hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
<6>hw-breakpoint: maximum watchpoint size is 4 bytes.
<6>S5P6442: Initializing architecture
<6>bio: create slab <bio-0> at 0
<5>SCSI subsystem initialized
<7>libata version 3.00 loaded.
<6>NetLabel: Initializing
<6>NetLabel: domain hash size = 128
<6>NetLabel: protocols = UNLABELED CIPSOv4
<6>NetLabel: unlabeled traffic allowed by default
<6>AppArmor: AppArmor Filesystem Enabled
<6>NET: Registered protocol family 2
<6>IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
<6>TCP established hash table entries: 8192 (order: 4, 65536 bytes)
<6>TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
<6>TCP: Hash tables configured (established 8192 bind 8192)
<6>TCP: reno registered
<6>UDP hash table entries: 256 (order: 0, 4096 bytes)
<6>UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
<6>NET: Registered protocol family 1
<6>audit: initializing netlink socket (disabled)
<5>type=2000 audit(0.200:1): initialized
<5>VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
<6>fuse init (API version 7.18)
<6>msgmni has been set to 489
<6>Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
<6>io scheduler noop registered
<6>io scheduler deadline registered
<6>io scheduler cfq registered (default)
<6>Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
s3c24xx_serial_probe(c06a6030) 0
<3>samsung-uart s3c6400-uart.0: could not find driver data
s3c24xx_serial_probe(c067128c) 0
<3>samsung-uart s3c6400-uart.1: could not find driver data
s3c24xx_serial_probe(c06713fc) 0
<3>samsung-uart s3c6400-uart.2: could not find driver data
<6>brd: module loaded
<6>loop: module loaded
<6>bonding: Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
<6>eql: Equalizer2002: Simon Janes (simon@ncm.com) and David S. Miller (davem@redhat.com)
<6>Fixed MDIO Bus: probed
<6>tun: Universal TUN/TAP device driver, 1.6
<6>tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
<6>PPP generic driver version 2.4.2
<6>PPP BSD Compression module registered
<6>PPP Deflate Compression module registered
<6>PPP MPPE Compression module registered
<6>mousedev: PS/2 mouse device common for all mice
<6>device-mapper: uevent: version 1.0.3
<6>device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
<6>cpuidle: using governor ladder
<6>ashmem: initialized
<6>logger: created 256K log 'log_main'
<6>logger: created 256K log 'log_events'
<6>logger: created 256K log 'log_radio'
<6>logger: created 256K log 'log_system'
<6>TCP: cubic registered
<6>NET: Registered protocol family 10
<6>NET: Registered protocol family 17
<5>Registering the dns_resolver key type
<6>registered taskstats version 1
<6>console [netcon0] enabled
<6>netconsole: network logging started
<3>drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
<4>Warning: unable to open an initial console.
<6>md: Waiting for all devices to be available before autodetect
<6>md: If you don't use raid, use raid=noautodetect
<6>md: Autodetecting RAID arrays.
<6>md: Scanned 0 and added 0 devices.
<6>md: autorun ...
<6>md: ... autorun DONE.
VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
Please append a correct "root=" boot option; here are the available partitions:
<0>Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Backtrace:
[<c000ca50>] (dump_backtrace+0x0/0x114) from [<c04925a8>] (dump_stack+0x20/0x24)
r6:c06456f0 r5:cf81b000 r4:c06a61ec
[<c0492588>] (dump_stack+0x0/0x24) from [<c04926b4>] (panic+0x84/0x1c0)
[<c0492630>] (panic+0x0/0x1c0) from [<c061dd98>] (mount_block_root+0x1ec/0x2c0)
r3:27611770 r2:27611770 r1:cf82df40 r0:c0595d68
r7:00008000
[<c061dbac>] (mount_block_root+0x0/0x2c0) from [<c061dfe8>] (mount_root+0x58/0x6c)
[<c061df90>] (mount_root+0x0/0x6c) from [<c061e168>] (prepare_namespace+0x16c/0x1cc)
r5:c06456e8 r4:c06a5ca0
[<c061dffc>] (prepare_namespace+0x0/0x1cc) from [<c061da14>] (kernel_init+0x198/0x1d4)
r5:c06456e8 r4:00000007
[<c061d87c>] (kernel_init+0x0/0x1d4) from [<c0020a14>] (do_exit+0x0/0x7b8)

So the two panics in there, first is probably because of a missing ID somewhere for this SoC, and the second one is because I didn't include an initramfs. I will deal with the first panic a bit later, but the second panic I won't deal with until I get:

s3c24xx_serial_probe(c06a6030) 0
<3>samsung-uart s3c6400-uart.0: could not find driver data
s3c24xx_serial_probe(c067128c) 0
<3>samsung-uart s3c6400-uart.1: could not find driver data
s3c24xx_serial_probe(c06713fc) 0
<3>samsung-uart s3c6400-uart.2: could not find driver data

That bit there needs sorted out. Probably a bad address or something causing that. Reason I need that is because we're currently running on early_printk which is a pile of garbage. It's only there to do output and AFAIK it doesn't support input and it certainly doesn't support handling a console because it's not a device, rather a virtual hacky fix which is there entirely for debugging. I want to get UART going PROPERLY so I have a console I can access, and then I can disable early_printk and tidy up the debug. That's the goal for tonight: UART.