On Fri, May 23, 2014 at 2:47 AM, Hans de Goede <[email protected]> wrote:
> Hi,
>
> On 05/22/2014 10:49 PM, [email protected] 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.
[    0.205075] devtmpfs: initialized
[    0.213065] VFP support v0.3: implementor 41 architecture 2 part 30
variant 7 rev 4
[    0.228390] atomic64 test passed
[    0.231710] pinctrl core: initialized pinctrl subsystem
[    0.237574] regulator-dummy: no parameters
[    0.248213] NET: Registered protocol family 16
[    0.253223] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.268391] No ATAGs?
[    0.270574] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4
watchpoint registers.
[    0.278923] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.285878] Serial: AMBA PL011 UART driver
[    0.305569] edma-dma-engine edma-dma-engine.0: Can't allocate PaRAM
dummy slot
[    0.312900] edma-dma-engine: probe of edma-dma-engine.0 failed with error -5
[    0.320491] reg-fixed-voltage ahci-5v.3: could not find pctldev for
node /soc@01c00000/pinctrl@01c20800/ahci_pwr_pin@1, deferring probe
[    0.332770] platform ahci-5v.3: Driver reg-fixed-voltage requests
probe deferral
[    0.340262] reg-fixed-voltage usb1-vbus.4: could not find pctldev
for node /soc@01c00000/pinctrl@01c20800/usb1_vbus_pin@0, deferring
probe
[    0.352779] platform usb1-vbus.4: Driver reg-fixed-voltage requests
probe deferral
[    0.360440] reg-fixed-voltage usb2-vbus.5: could not find pctldev
for node /soc@01c00000/pinctrl@01c20800/usb2_vbus_pin@0, deferring
probe
[    0.372957] platform usb2-vbus.5: Driver reg-fixed-voltage requests
probe deferral
[    0.380847] vcc3v0: 3000 mV
[    0.384142] vcc3v3: 3300 mV
[    0.387204] reg-fixed-voltage vmmc3.9: could not find pctldev for
node /soc@01c00000/pinctrl@01c20800/vmmc3_pin@0, deferring probe
[    0.399044] platform vmmc3.9: Driver reg-fixed-voltage requests
probe deferral
[    0.406532] axp-ipsout: 5000 mV
[    0.411182] vgaarb: loaded
[    0.414818] SCSI subsystem initialized
[    0.418958] libata version 3.00 loaded.
[    0.423329] usbcore: registered new interface driver usbfs
[    0.428962] usbcore: registered new interface driver hub
[    0.434533] usbcore: registered new device driver usb
[    0.439984] media: Linux media interface: v0.10
[    0.444721] Linux video capture interface: v2.00
[    0.449506] pps_core: LinuxPPS API ver. 1 registered
[    0.454541] pps_core: Software ver. 5.3.6 - Copyright 2005-2007
Rodolfo Giometti <[email protected]>
[    0.463812] PTP clock support registered
[    0.468763] Advanced Linux Sound Architecture Driver Initialized.
[    0.476302] NetLabel: Initializing
[    0.479791] NetLabel:  domain hash size = 128
[    0.484225] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.489362] cfg80211: Calling CRDA to update world regulatory domain
[    0.495891] NetLabel:  unlabeled traffic allowed by default
[    0.502156] Switched to clocksource arch_sys_counter
[    0.577977] NET: Registered protocol family 2
[    0.583252] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.590452] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.597132] TCP: Hash tables configured (established 8192 bind 8192)
[    0.603646] TCP: reno registered
[    0.606967] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.613037] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.619768] NET: Registered protocol family 1
[    0.624751] RPC: Registered named UNIX socket transport module.
[    0.630754] RPC: Registered udp transport module.
[    0.635575] RPC: Registered tcp transport module.
[    0.640358] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.646894] PCI: CLS 0 bytes, default 64
[    0.651901] hw perfevents: enabled with ARMv7 Cortex-A7 PMU driver,
5 counters available
[    0.661704] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.668093] audit: initializing netlink subsys (disabled)
[    0.673721] audit: type=2000 audit(0.540:1): initialized
[    0.884077] bounce pool size: 64 pages
[    0.899173] zbud: loaded
[    0.902560] VFS: Disk quotas dquot_6.5.2
[    0.906848] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.916438] NFS: Registering the id_resolver key type
[    0.921632] Key type id_resolver registered
[    0.925983] Key type id_legacy registered
[    0.930087] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.937233] msgmni has been set to 1451
[    0.941546] SELinux:  Registering netfilter hooks
[    0.949788] alg: No test for stdrng (krng)
[    0.954097] NET: Registered protocol family 38
[    0.958969] Block layer SCSI generic (bsg) driver version 0.4
loaded (major 249)
[    0.966717] io scheduler noop registered
[    0.970724] io scheduler deadline registered
[    0.975540] io scheduler cfq registered (default)
[    0.981122] platform 1c13400.phy: Driver sun4i-usb-phy requests
probe deferral
[    0.992323] sun7i-a20-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    1.001585] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
������� � � ?���������ws��û��z<���_�>���� 
���7���`�߃��������o7?�݆��\����|�����0C���� ������������ �������؏�   ~��� ����
����?7����?�� �����x�������ر������}c��������|,� �`
���{��� ��������?�������{����o�  ��������7�`�c>���   >.




U-Boot 2014.04-10675-g44b53fd (May 19 2014 - 20:39:18) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Board: Cubietruck
I2C:   ready
DRAM:  2 GiB
MMC:   SUNXI SD/MMC: 0
In:    serial
Out:   serial
Err:   serial
Net:   dwmac.1c50000


>
> Regards,
>
> Hans
>
>>
>> I used the device tree in the kernel.
>>
>> ## Booting kernel from Legacy Image at 46000000 ...
>>    Image Name:   Linux-3.15.0-rc5-01230-g6c90cef
>>    Image Type:   ARM Linux Kernel Image (uncompressed)
>>    Data Size:    1877152 Bytes = 1.8 MiB
>>    Load Address: 40008000
>>    Entry Point:  40008000
>>    Verifying Checksum ... OK
>> ## Flattened Device Tree blob at 60000000
>>    Booting using the fdt blob at 0x60000000
>>    Loading Kernel Image ... OK
>>    Loading Device Tree to 4fff7000, end 4ffff3fa ... OK
>>
>> Starting kernel ...
>>
>> Uncompressing Linux... done, booting the kernel.
>> [    0.000000] Booting Linux on physical CPU 0x0
>> [    0.000000] Linux version 3.15.0-rc5-01230-g6c90cef
>> (jonsmirl@terra) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-11ubuntu1) )
>> #5 SMP Thu May 22 13:45:33 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 c03807c0,
>> node_mem_map ee7f9000
>> [    0.000000]   Normal zone: 1520 pages used for memmap
>> [    0.000000]   Normal zone: 0 pages reserved
>> [    0.000000]   Normal 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 5 pages/cpu @ee7ce000 s6592 r0 d13888 u32768
>> [    0.000000] pcpu-alloc: s6592 r0 d13888 u32768 alloc=8*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] Memory: 2075992K/2097152K available (2682K kernel code,
>> 164K rwdata, 512K rodata, 190K init, 224K bss, 21160K 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]       .text : 0xc0008000 - 0xc0326c80   (3196 kB)
>> [    0.000000]       .init : 0xc0327000 - 0xc03569c0   ( 191 kB)
>> [    0.000000]       .data : 0xc0358000 - 0xc0381360   ( 165 kB)
>> [    0.000000]        .bss : 0xc0381368 - 0xc03b95cc   ( 225 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=4 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.000009] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps
>> every 2863311519744ns
>> [    0.008085] Switching to timer-based delay loop
>> [    0.012981] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps
>> every 178956969942ns
>> [    0.021081] sched_clock: 32 bits at 160MHz, resolution 6ns, wraps
>> every 26843545593ns
>> [    0.029183] Console: colour dummy device 80x30
>> [    0.033729] Calibrating delay loop (skipped), value calculated
>> using timer frequency.. 48.00 BogoMIPS (lpj=240000)
>> [    0.044179] pid_max: default: 32768 minimum: 301
>> [    0.048976] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
>> [    0.055685] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 
>> bytes)
>> [    0.063371] CPU: Testing write buffer coherency: ok
>> [    0.068626] /cpus/cpu@0 missing clock-frequency property
>> [    0.074026] /cpus/cpu@1 missing clock-frequency property
>> [    0.079441] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
>> [    0.085199] Setting up static identity map for 0x4028ab98 - 0x4028abf0
>> [    0.092672] CPU1: failed to boot: -38
>> [    0.096437] Brought up 1 CPUs
>> [    0.099486] SMP: Total of 1 processors activated.
>> [    0.104304] CPU: All CPU(s) started in SVC mode.
>> [    0.109519] devtmpfs: initialized
>> [    0.116613] VFP support v0.3: implementor 41 architecture 2 part 30
>> variant 7 rev 4
>> [    0.124610] pinctrl core: initialized pinctrl subsystem
>> [    0.130099] regulator-dummy: no parameters
>> [    0.138806] NET: Registered protocol family 16
>> [    0.143598] DMA: preallocated 256 KiB pool for atomic coherent allocations
>> [    0.157913] reg-fixed-voltage ahci-5v.3: could not find pctldev for
>> node /soc@01c00000/pinctrl@01c20800/ahci_pwr_pin@1, deferring probe
>> [    0.170231] platform ahci-5v.3: Driver reg-fixed-voltage requests
>> probe deferral
>> [    0.177721] reg-fixed-voltage usb1-vbus.4: could not find pctldev
>> for node /soc@01c00000/pinctrl@01c20800/usb1_vbus_pin@0, deferring
>> probe
>> [    0.190237] platform usb1-vbus.4: Driver reg-fixed-voltage requests
>> probe deferral
>> [    0.197895] reg-fixed-voltage usb2-vbus.5: could not find pctldev
>> for node /soc@01c00000/pinctrl@01c20800/usb2_vbus_pin@0, deferring
>> probe
>> [    0.210407] platform usb2-vbus.5: Driver reg-fixed-voltage requests
>> probe deferral
>> [    0.218217] vcc3v0: 3000 mV
>> [    0.221340] vcc3v3: 3300 mV
>> [    0.224346] reg-fixed-voltage vmmc3.9: could not find pctldev for
>> node /soc@01c00000/pinctrl@01c20800/vmmc3_pin@0, deferring probe
>> [    0.236175] platform vmmc3.9: Driver reg-fixed-voltage requests
>> probe deferral
>> [    0.244461] Switched to clocksource arch_sys_counter
>> [    0.256353] NET: Registered protocol family 2
>> [    0.261252] TCP established hash table entries: 8192 (order: 3, 32768 
>> bytes)
>> [    0.268496] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
>> [    0.275137] TCP: Hash tables configured (established 8192 bind 8192)
>> [    0.281641] TCP: reno registered
>> [    0.284974] UDP hash table entries: 512 (order: 2, 16384 bytes)
>> [    0.291020] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
>> [    0.297662] NET: Registered protocol family 1
>> [    0.302468] RPC: Registered named UNIX socket transport module.
>> [    0.308504] RPC: Registered udp transport module.
>> [    0.313287] RPC: Registered tcp transport module.
>> [    0.318080] RPC: Registered tcp NFSv4.1 backchannel transport module.
>> [    0.325524] futex hash table entries: 512 (order: 3, 32768 bytes)
>> [    0.332170] bounce pool size: 64 pages
>> [    0.343942] Block layer SCSI generic (bsg) driver version 0.4
>> loaded (major 253)
>> [    0.351491] io scheduler noop registered
>> [    0.355508] io scheduler deadline registered
>> [    0.360044] io scheduler cfq registered (default)
>> [    0.366846] sun7i-a20-pinctrl 1c20800.pinctrl: initialized sunXi PIO 
>> driver
>> [    0.414856] Serial: 8250/16550 driver, 8 ports, IRQ sharing enabled
>> �������������������������������������� �������
>>



-- 
Jon Smirl
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to