On Fri, May 23, 2014 at 12:21:34PM -0400, jonsm...@gmail.com wrote: > On Fri, May 23, 2014 at 2:47 AM, Hans de Goede <hdego...@redhat.com> wrote: > > Hi, > > > > On 05/22/2014 10:49 PM, jonsm...@gmail.com wrote: > >> I tried booting both Maxime's and Han's 3.15 kernel on the Cubietruck. > >> Serial is messed up as soon as the kernel switches off from early printk. > >> Can anyone give me a clue? I want to work on the sound drivers but I can't > >> boot. > > > > That is weird, it might be something with your .config. Can you try: > > https://github.com/jwrdegoede/linux-sunxi/commits/sunxi-devel > > > > With the attached config ? > > When I first tried it without early printk turned on I got no output. > So maybe the kernel seems to not be happy with state uboot left the > uart in? > > After I turned on earlyprintk, similar failure... > > sun7i# bootm 0x46000000 - 0x49000000 > ## Booting kernel from Legacy Image at 46000000 ... > Image Name: Linux-3.15.0-rc6+ > Image Type: ARM Linux Kernel Image (uncompressed) > Data Size: 5918632 Bytes = 5.6 MiB > Load Address: 40008000 > Entry Point: 40008000 > Verifying Checksum ... OK > ## Flattened Device Tree blob at 49000000 > Booting using the fdt blob at 0x49000000 > Loading Kernel Image ... OK > Using Device Tree in place at 49000000, end 49008e3d > > Starting kernel ... > > Uncompressing Linux... done, booting the kernel. > [ 0.000000] Booting Linux on physical CPU 0x0 > [ 0.000000] Initializing cgroup subsys cpuset > [ 0.000000] Initializing cgroup subsys cpu > [ 0.000000] Initializing cgroup subsys cpuacct > [ 0.000000] Linux version 3.15.0-rc6+ (jonsmirl@terra) (gcc version > 4.7.3 (Ubuntu/Linaro 4.7.3-11ubuntu1) ) #12 SMP Fri May 23 12:16:36 > EDT 2014 > [ 0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d > [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing > instruction cache > [ 0.000000] Machine model: Cubietech Cubietruck > [ 0.000000] bootconsole [earlycon0] enabled > [ 0.000000] Memory policy: Data cache writealloc > [ 0.000000] On node 0 totalpages: 524288 > [ 0.000000] free_area_init_node: node 0, pgdat c0e4bec0, > node_mem_map ee7f9000 > [ 0.000000] DMA zone: 1520 pages used for memmap > [ 0.000000] DMA zone: 0 pages reserved > [ 0.000000] DMA zone: 194560 pages, LIFO batch:31 > [ 0.000000] HighMem zone: 2576 pages used for memmap > [ 0.000000] HighMem zone: 329728 pages, LIFO batch:31 > [ 0.000000] PERCPU: Embedded 9 pages/cpu @ee7ca000 s13184 r8192 d15488 > u36864 > [ 0.000000] pcpu-alloc: s13184 r8192 d15488 u36864 alloc=9*4096 > [ 0.000000] pcpu-alloc: [0] 0 [0] 1 > [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. > Total pages: 522768 > [ 0.000000] Kernel command line: console=ttyS0,115200 loglevel=9 > earlyprintk root=/dev/mmcblk0p2 ro rootwait > [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) > [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 > bytes) > [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) > [ 0.000000] allocated 4194304 bytes of page_cgroup > [ 0.000000] please try 'cgroup_disable=memory' option if you don't > want memory cgroups > [ 0.000000] Memory: 2062000K/2097152K available (7630K kernel code, > 937K rwdata, 3308K rodata, 784K init, 971K bss, 35152K reserved, > 1318912K highmem) > [ 0.000000] Virtual kernel memory layout: > [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) > [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) > [ 0.000000] vmalloc : 0xf0000000 - 0xff000000 ( 240 MB) > [ 0.000000] lowmem : 0xc0000000 - 0xef800000 ( 760 MB) > [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) > [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) > [ 0.000000] .text : 0xc0208000 - 0xc0cb6d68 (10940 kB) > [ 0.000000] .init : 0xc0cb7000 - 0xc0d7b380 ( 785 kB) > [ 0.000000] .data : 0xc0d7c000 - 0xc0e666b0 ( 938 kB) > [ 0.000000] .bss : 0xc0e666b0 - 0xc0f594a4 ( 972 kB) > [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 > [ 0.000000] Hierarchical RCU implementation. > [ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2. > [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2 > [ 0.000000] NR_IRQS:16 nr_irqs:16 16 > [ 0.000000] Architected cp15 timer(s) running at 24.00MHz (virt). > [ 0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps > every 2863311519744ns > [ 0.008085] Switching to timer-based delay loop > [ 0.013794] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps > every 178956969942ns > [ 0.022188] sched_clock: 32 bits at 160MHz, resolution 6ns, wraps > every 26843545593ns > [ 0.030466] Console: colour dummy device 80x30 > [ 0.035014] Calibrating delay loop (skipped), value calculated > using timer frequency.. 48.00 BogoMIPS (lpj=240000) > [ 0.045471] pid_max: default: 32768 minimum: 301 > [ 0.050314] Security Framework initialized > [ 0.054555] SELinux: Initializing. > [ 0.058161] SELinux: Starting in permissive mode > [ 0.063153] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) > [ 0.069879] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 > bytes) > [ 0.077826] Initializing cgroup subsys memory > [ 0.082355] Initializing cgroup subsys devices > [ 0.086884] Initializing cgroup subsys freezer > [ 0.091409] Initializing cgroup subsys net_cls > [ 0.095951] Initializing cgroup subsys blkio > [ 0.100303] Initializing cgroup subsys perf_event > [ 0.105165] CPU: Testing write buffer coherency: ok > [ 0.110189] ftrace: allocating 31130 entries in 61 pages > [ 0.156268] /cpus/cpu@0 missing clock-frequency property > [ 0.161681] /cpus/cpu@1 missing clock-frequency property > [ 0.167123] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 > [ 0.172897] Setting up static identity map for 0x40933970 - 0x40933a08 > [ 0.187898] CPU1: failed to boot: -38 > [ 0.191761] Brought up 1 CPUs > [ 0.194813] SMP: Total of 1 processors activated. > [ 0.199594] CPU: All CPU(s) started in SVC mode.
You seem to be running a rather old bootloader. Did you try updating it? You can try https://github.com/jwrdegoede/u-boot-sunxi/commits/sunxi-test Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
signature.asc
Description: Digital signature