On Thu, May 22, 2014 at 8:19 AM, [email protected] <[email protected]> wrote: > On Thu, May 22, 2014 at 8:16 AM, Koen Kooi <[email protected]> wrote: >> >> Op 22 mei 2014, om 14:13 heeft [email protected] het volgende geschreven: >> >>> On Thu, May 22, 2014 at 2:14 AM, Yassin Jaffer <[email protected]> >>> wrote: >>>> sorry I did not realize that your are booting from NFS, I had my own mmc >>>> driver. I guess you could use initramfs. I've not tried to boot from NFS >>>> before. >>>> >>>> >>>> On Thu, May 22, 2014 at 3:56 PM, Yassin Jaffer <[email protected]> >>>> wrote: >>>>> >>>>> setenv bootargs console=ttyS0,115200 loglevel=9 earlyprintk >>>>> root=/dev/mmcblk0p2 ro rootwait >>> >>> So part of the problem is boot args. I can fix the rootfs once the >>> kernel starts booting. >>> >>> I got a little further... >>> >>> sun7i# setenv bootargs console=ttyS0,115200 loglevel=9 earlyprintk >>> root=/dev/mmcblk0p2 ro rootwait >>> sun7i# bootm 0x46000000 - 0x60000000 >>> ## Booting kernel from Legacy Image at 46000000 ... >>> Image Name: Linux-3.15.0-rc5-80186-gb9505da >>> Image Type: ARM Linux Kernel Image (uncompressed) >>> Data Size: 1846144 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 4ffffddd ... OK >>> >>> Starting kernel ... >>> >>> Uncompressing Linux... done, booting the kernel. >>> ����������������|�����p ��x~���� >>> ���������������������x�������������������������������������>�����~����������������������������������������������������������������� >>> >>> That looks like the baud rate of early printk is not 115200. >> >> earlyprinktk runs before clocks get changed, so it will use whatever the >> bootloader configured. Since you do get u-boot output I think the problem >> lies somewhere else. >> Since earlyprintk is arch specific, does the kernel support sunxi >> earlyprintk? > > It has option for "Kernel low-level debugging messages via sunXi UART0". > I am using that on an A20.
I see that I also need to turn on early printk in the kernel. Now I am getting some output... So as soon as the real serial driver starts I am losing output. sun7i# bootm 0x46000000 - 0x60000000 ## Booting kernel from Legacy Image at 46000000 ... Image Name: Linux-3.15.0-rc5-80186-gb9505da Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1846168 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 4ffffddd ... 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-80186-gb9505da (jonsmirl@terra) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-11ubuntu1) ) #3 SMP Thu May 22 08:28:43 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 c0370940, 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 @ee7cc000 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: 2076052K/2097152K available (2636K kernel code, 157K rwdata, 500K rodata, 190K init, 221K bss, 21100K 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 - 0xc0318560 (3138 kB) [ 0.000000] .init : 0xc0319000 - 0xc03489c0 ( 191 kB) [ 0.000000] .data : 0xc034a000 - 0xc03714e0 ( 158 kB) [ 0.000000] .bss : 0xc03714e8 - 0xc03a8bcc ( 222 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.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 2863311519744ns [ 0.008083] Switching to timer-based delay loop [ 0.012991] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ns [ 0.021106] sched_clock: 32 bits at 160MHz, resolution 6ns, wraps every 26843545593ns [ 0.029210] Console: colour dummy device 80x30 [ 0.033753] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000) [ 0.044202] pid_max: default: 32768 minimum: 301 [ 0.048998] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.055704] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.063392] CPU: Testing write buffer coherency: ok [ 0.068642] /cpus/cpu@0 missing clock-frequency property [ 0.074043] /cpus/cpu@1 missing clock-frequency property [ 0.079459] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.085217] Setting up static identity map for 0x4027f490 - 0x4027f4e8 [ 0.092697] CPU1: failed to boot: -38 [ 0.096464] Brought up 1 CPUs [ 0.099514] SMP: Total of 1 processors activated. [ 0.104331] CPU: All CPU(s) started in SVC mode. [ 0.109546] devtmpfs: initialized [ 0.116674] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4 [ 0.124660] pinctrl core: initialized pinctrl subsystem [ 0.130151] regulator-dummy: no parameters [ 0.139604] NET: Registered protocol family 16 [ 0.144394] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.159082] reg-fixed-voltage ahci-5v.3: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/ahci_pwr_pin@1, deferring probe [ 0.171397] platform ahci-5v.3: Driver reg-fixed-voltage requests probe deferral [ 0.178886] reg-fixed-voltage usb1-vbus.4: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb1_vbus_pin@0, deferring probe [ 0.191401] platform usb1-vbus.4: Driver reg-fixed-voltage requests probe deferral [ 0.199058] reg-fixed-voltage usb2-vbus.5: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb2_vbus_pin@0, deferring probe [ 0.211570] platform usb2-vbus.5: Driver reg-fixed-voltage requests probe deferral [ 0.219386] vcc3v3: 3300 mV [ 0.222421] reg-fixed-voltage vmmc3.8: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/vmmc3_pin@0, deferring probe [ 0.234242] platform vmmc3.8: Driver reg-fixed-voltage requests probe deferral [ 0.241662] axp-ipsout: 5000 mV [ 0.246026] Switched to clocksource arch_sys_counter [ 0.257856] NET: Registered protocol family 2 [ 0.262737] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.269977] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 0.276621] TCP: Hash tables configured (established 8192 bind 8192) [ 0.283124] TCP: reno registered [ 0.286460] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.292505] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.299141] NET: Registered protocol family 1 [ 0.303958] RPC: Registered named UNIX socket transport module. [ 0.309996] RPC: Registered udp transport module. [ 0.314779] RPC: Registered tcp transport module. [ 0.319570] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.327039] futex hash table entries: 512 (order: 3, 32768 bytes) [ 0.333676] bounce pool size: 64 pages [ 0.345571] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) [ 0.353123] io scheduler noop registered [ 0.357138] io scheduler deadline registered [ 0.361679] io scheduler cfq registered (default) [ 0.368451] sun7i-a20-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver [ 0.416901] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled ���� > > >> >> regards, >> >> Koen >> >>> >>> Once I can see what is going on, this feels to me like the kernel is >>> not finding a machine name in the device tree that it likes. But I am >>> using the cubietruck DT from that same kernel tree. >>> >>> >>>>> >>>>> >>>>> On Thu, May 22, 2014 at 2:26 PM, [email protected] <[email protected]> >>>>> wrote: >>>>>> >>>>>> I can't get anywhere trying to boot a devel device tree kernel on >>>>>> Cubietruck. >>>>>> >>>>>> This is with https://github.com/jwrdegoede/linux-sunxi.git and the >>>>>> linux-devel branch. >>>>>> I don't get any boot output. I can boot a 3.4 kernel without problem. >>>>>> >>>>>> I followed these steps. http://linux-sunxi.org/Mainline_Kernel_Howto >>>>>> I also tried turning on low level printk but still no output >>>>>> >>>>>> U-Boot SPL 2014.04-10675-g44b53fd (May 19 2014 - 20:39:18) >>>>>> Board: Cubietruck >>>>>> DRAM: 2048 MiB >>>>>> CPU: 960000000Hz, AXI/AHB/APB: 3/2/2 >>>>>> spl: not an uImage at 1600 >>>>>> >>>>>> >>>>>> 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 >>>>>> Hit any key to stop autoboot: 0 >>>>>> sun7i# tftp 0x49000000 /var/lib/tftpboot/ct.dtb >>>>>> dwmac.1c50000 Waiting for PHY auto negotiation to complete........ done >>>>>> Speed: 1000, full duplex >>>>>> Using dwmac.1c50000 device >>>>>> TFTP from server 192.168.1.50; our IP address is 192.168.1.51 >>>>>> Filename '/var/lib/tftpboot/ct.dtb'. >>>>>> Load address: 0x49000000 >>>>>> Loading: ## >>>>>> 7.6 MiB/s >>>>>> done >>>>>> Bytes transferred = 24030 (5dde hex) >>>>>> sun7i# tftp 0x46000000 /var/lib/tftpboot/uImage >>>>>> Speed: 1000, full duplex >>>>>> Using dwmac.1c50000 device >>>>>> TFTP from server 192.168.1.50; our IP address is 192.168.1.51 >>>>>> Filename '/var/lib/tftpboot/uImage'. >>>>>> Load address: 0x46000000 >>>>>> Loading: >>>>>> ################################################################# >>>>>> ############################################################# >>>>>> 12.3 MiB/s >>>>>> done >>>>>> Bytes transferred = 1837040 (1c07f0 hex) >>>>>> sun7i# env set fdt_high ffffffff >>>>>> sun7i# >>>>>> sun7i# bootm 0x46000000 - 0x49000000 >>>>>> ## Booting kernel from Legacy Image at 46000000 ... >>>>>> Image Name: Linux-3.15.0-rc5-80186-gb9505da >>>>>> Image Type: ARM Linux Kernel Image (uncompressed) >>>>>> Data Size: 1836976 Bytes = 1.8 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 49008ddd >>>>>> >>>>>> Starting kernel ... >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> 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. >>>>> >>>>> >>>> >>>> -- >>>> 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. >>> >>> >>> >>> -- >>> 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. >> >> -- >> 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. > > > > -- > Jon Smirl > [email protected] -- 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.
