Closed ponyatov closed 5 years ago
/*
/ { model = "StarterKit SK-NUC976"; compatible = "nuvoton,nuc970";
chosen {
bootargs = "root=/dev/ram0 console=ttyS0,115200n8 rdinit=/sbin/init mem=64M";
};
apb {
rtc: rtc@b8004000 {
status = "okay";
};
uart0: serial@b8000000 {
status = "okay";
};
uart7: serial@b8000700 {
status = "disabled";
};
gpio: gpio@b8003000 {
status = "disabled";
};
spi0: spi0@b8006200 {
status = "disabled";
#address-cells = <1>;
#size-cells = <0>;
num_cs = <2>;
lsb = <0>;
txneg = <1>;
rxneg = <0>;
divider = <4>;
sleep = <0>;
txnum = <0>;
txbitlen = <8>;
bus_num = <0>;
spidev@0x00 {
compatible = "spidev";
spi-max-frequency = <30000000>;
reg = <0>;
};
};
spi1: spi1@b8006300 {
status = "disabled";
#address-cells = <1>;
#size-cells = <0>;
num_cs = <2>;
lsb = <0>;
txneg = <1>;
rxneg = <0>;
divider = <4>;
sleep = <0>;
txnum = <0>;
txbitlen = <8>;
bus_num = <1>;
spidev@0x01 {
compatible = "spidev";
spi-max-frequency = <30000000>;
reg = <0>;
};
};
};
ahb {
usbh_ehci@b0005000 {
status = "disabled";
};
usbh_ohci@b0007000{
status = "disabled";
};
crypto@b000f000{
status = "disabled";
};
sdh@b000c000 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sd0>;
status = "disabled";
};
emac0@b0002000 {
status = "disabled";
};
sound {
status = "disabled";
/ compatible = "nuvoton,nuc970-audio"; i2s-controller = <&i2s>; i2s-platform = <&i2s_pcm>; / }; }; };
Error in the bootloader script: .dtb file was not included
After switching to device tree build (need some custom boards support with difference GPIO connections), got this error: system stops boot on calibrating delay loop. Most googling gives similar results for other boards: errors in system timer code/dts, goes to halt on delay loop.
[ 0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] Machine: NUC970 [ 0.000000] Memory policy: Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 [ 0.000000] Kernel command line: root=/dev/ram0 console=ttyS0,115200n8 rdinit=/sbin/init mem=64M $console waitroot [ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes) [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Memory: 58988K/65536K available (2686K kernel code, 148K rwdata, 816K rodata, 1752K init, 494K bss, 6548K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xffe00000 (2048 kB) [ 0.000000] vmalloc : 0xc4800000 - 0xff000000 ( 936 MB) [ 0.000000] lowmem : 0xc0000000 - 0xc4000000 ( 64 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc0373ec4 (3504 kB) [ 0.000000] .init : 0xc0374000 - 0xc052a000 (1752 kB) [ 0.000000] .data : 0xc052a000 - 0xc054f3c0 ( 149 kB) [ 0.000000] .bss : 0xc054f3c0 - 0xc05cafac ( 495 kB) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:126 [ 0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836480000000ns [ 0.000000] Console: colour dummy device 80x30 [ 0.000000] console [ttyS0] enabled [ 0.000000] Calibrating delay loop...