01-19-2016, 02:47 PM
(This post was last modified: 01-19-2016, 04:52 PM by jbevren.
Edit Reason: Include kernel boot log
)
Good work on the kernel so far. Have you been able to boot a homebrew kernel successfully?
[Edit: included the boot log
]
I'm building the kernel natively on the LTV, using a Devuan Jessie install on internal flash (more on that in another post later on)
[Edit: included the boot log

Code:
reading uImage
3347000 bytes read in 282 ms (11.3 MiB/s)
## Booting kernel from Legacy Image at 45000000 ...
Image Name: Linux-3.4.24-jbevren
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3346936 Bytes = 3.2 MiB
Load Address: 40008000
Entry Point: 40008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Booting Linux on physical CPU 0
Linux version 3.4.24-jbevren (jbevren@LTV) (gcc version 4.9.2 (Debian 4.9.2-10) ) #3 SMP PREEMPT Tue Jan 19 21:47:46 UTC 2016
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: nxp4330q
nxp_reserve_mem: reserve CMA: size 41943040
Memory policy: ECC disabled, Data cache writealloc
CPU : iomap[ 0]: p 0xc0000000 -> v 0xf0000000 len=0x300000
CPU : iomap[ 1]: p 0xf0000000 -> v 0xf0300000 len=0x100000
CPU : iomap[ 2]: p 0xcf000000 -> v 0xf0400000 len=0x100000
CPU : iomap[ 3]: p 0x2c000000 -> v 0xf0500000 len=0x100000
CPU : iomap[ 4]: p 0x00000000 -> v 0xf0600000 len=0x100000
CPU : DMA Zone Size =16M
Timer.0 Prescaler0=199+1 Divider=/1 [Hz=0] Count=999999+1 Hz=0 ModuleIndex=0 (NX_TIMER_OpenModule)
Timer.1 Prescaler0=199+1 Divider=/1 [Hz=0] Count=0+1 Hz=0 ModuleIndex=0 (NX_TIMER_OpenModule)
Timer.2 Prescaler1=1+1 Divider=/1 [Hz=0] Count=0+1 Hz=0 ModuleIndex=0 (NX_TIMER_OpenModule)
Timer.3 Prescaler1=1+1 Divider=/1 [Hz=0] Count=0+1 Hz=0 ModuleIndex=0 (NX_TIMER_OpenModule)
Timer.4 Prescaler1=1+1 Divider=/1 [Hz=0] Count=0+1 Hz=0 ModuleIndex=0 (NX_TIMER_OpenModule)
Pwm.0 Prescaler0=0+1 Divider=/1 [Hz=0] Count=0+1 Hz=0 ModuleIndex=0 (NX_PWM_OpenModule)
Pwm.1 Prescaler0=0+1 Divider=/1 [Hz=0] Count=0+1 Hz=0 ModuleIndex=0 (NX_PWM_OpenModule)
Pwm.2 Prescaler1=0+1 Divider=/1 [Hz=0] Count=0+1 Hz=0 ModuleIndex=0 (NX_PWM_OpenModule)
Pwm.3 Prescaler1=0+1 Divider=/1 [Hz=0] Count=0+1 Hz=0 ModuleIndex=0 (NX_PWM_OpenModule)
Pwm.4 Prescaler1=0+1 Divider=/1 [Hz=0] Count=0+1 Hz=0 ModuleIndex=0 (NX_PWM_OpenModule)
[0x11080] - 0x00000000
[0x00] - 0x00000009
[0x04] - 0x000055f3
[0x08] - 0x00000000
[0x0c] - 0x00000000
[0x40] - 0x00000000
[0x44] - 0x00000000
[0x50] - 0x0000000f
[0x54] - 0x000000ff
-------------- DREX QoS -------------
Drex DoQ 00 - : 0x00000100
Drex DoQ 01 - : 0x00000fff
CPU : VERSION = 1 (0xE153000A)
arch/arm/mach-nxp4330/gpio/init_gpio.c.104:bd_gpio_init system_rev: 0x448
nxp4330 : done gpio initialize ...
CPU : Clock Generator= 58 EA, DVFS = Off
PLL : [0] = 984000000, [1] = 655500000, [2] = 800000000, [3] = 666000000
PLLSETREG[0] : 0x1019ec01 ( SS_EN = 0 P = 6 M = 492 S = 1 )
PLLSETREG[1] : 0x1011b502 ( SS_EN = 0 P = 4 M = 437 S = 2 )
PLLSETREG[2] : 0x100cc801 ( SS_EN = 0 P = 3 M = 200 S = 1 )
PLLSETREG[3] : 0x5010de01 ( SS_EN = 1 P = 4 M = 222 S = 1 )
PLLSETREG_SSCG[2] : 0x00000000 ( K = 0 MFR = 0 MRR = 0 SEL_PF = 0 )
PLLSETREG_SSCG[3] : 0x0000055c ( K = 0 MFR = 5 MRR = 23 SEL_PF = 0 )
PLL0: CPU FCLK = 984000000, HCLK = 246000000
PLL2: BUS BCLK = 400000000, PCLK = 200000000
PLL3: MEM MCLK = 666000000, DCLK = 666000000, BCLK = 333000000, PCLK = 166500000
PLL2: G3D BCLK = 400000000
PLL1: MPG BCLK = 327750000, PCLK = 163875000
PERCPU: Embedded 7 pages/cpu @c0fef000 s7168 r8192 d13312 u32768
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 259839
Kernel command line: console=ttyS0,115200n8 root=/dev/mmcblk0p3 rootfstype=ext4 rw rootwait ramdisk=24576 ubversion=7.0.1.2634
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1024MB = 1024MB total
Memory: 990384k/990384k available, 58192k reserved, 272384K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xef800000 - 0xfee00000 ( 246 MB)
lowmem : 0xc0000000 - 0xef600000 ( 758 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc05e9440 (6022 kB)
.init : 0xc05ea000 - 0xc060ec00 ( 147 kB)
.data : 0xc0610000 - 0xc065de20 ( 312 kB)
.bss : 0xc065de44 - 0xc06e5f3c ( 545 kB)
SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
Preemptible hierarchical RCU implementation.
NR_IRQS:375
VIC @f0002000: id 0x00041192, vendor 0x41
VIC @f0003000: id 0x00041192, vendor 0x41
GPIO @f001a000: start 64, mask 0xffffffff (gpio 53)
GPIO @f001b000: start 96, mask 0xffffffff (gpio 54)
GPIO @f001c000: start 128, mask 0xffffffff (gpio 55)
GPIO @f001d000: start 160, mask 0xffffffff (gpio 56)
GPIO @f001e000: start 192, mask 0xffffffff (gpio 57)
ALIVE @f0010800: start 224, mask 0x000000ff (alive 4)
GIC @f0301000: start 256 (vic 31)
timer.0: source, 10000000(HZ:100), mult:3355443200
timer.1: event , 10000000(HZ:100), mult:42949673
sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
Console: colour dummy device 80x30
Calibrating delay loop... 1954.61 BogoMIPS (lpj=9773056)
pid_max: default: 32768 minimum: 301
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 10, mpidr 80000a00
hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
Setting up static identity map for 0x40450850 - 0x404508a8
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x4100c4c8, AUX_CTRL 0x70070001, Cache size: 1048576 B
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 10, mpidr 80000a01
CPU1: Unknown IPI message 0x1
CPU2: Booted secondary processor
CPU2: thread -1, cpu 2, socket 10, mpidr 80000a02
CPU2: Unknown IPI message 0x1
CPU3: Booted secondary processor
CPU3: thread -1, cpu 3, socket 10, mpidr 80000a03
CPU3: Unknown IPI message 0x1
Brought up 4 CPUs
SMP: Total of 4 processors activated (7838.10 BogoMIPS).
devtmpfs: initialized
pwm: max = 100000000 hz
NET: Registered protocol family 16
[Register machine platform devices]
initialize gpio chips
init_glasgow: GLASGOW (Alpha) GPIO mapping
gpiochip_add: registered GPIOs 0 to 95 on device: lf3000_virtual_gpio
gpiochip_add: registered GPIOs 2048 to 2207 on device: lf3000_physical_gpio
plat: add device alive registers
mach: add amba device uart-pl011.0
mach: add amba device uart-pl011.1
mach: add amba device uart-pl011.2
mach: add amba device uart-pl011.3
mach: add amba device uart-pl011.4
mach: add amba device uart-pl011.5
mach: add amba device pl08xdmac.0
mach: add amba device pl08xdmac.1
mach: add amba device ssp-pl022.0
mach: add device i2c bus (array:1)
mach: add device Real Time Clock
mach: add device generic pwm (array:1)
mach: add device ADC
mach: add device spdif tx
mach: add device usb otg
mach: add device ion-nxp
mach: add graphic device opengl|es
[Register board platform devices]
peri_clk_rate base=f00c5000, level=0, src=2, div=7+1, CLKGEN[0]=e8
mach: add device sdmmc [0]
peri_clk_rate base=f00cc000, level=0, src=2, div=7+1, CLKGEN[0]=e8
mach: add device sdmmc [1]
peri_clk_rate base=f00cd000, level=0, src=2, div=7+1, CLKGEN[0]=e8
mach: add device sdmmc [2]
plat: add device frame buffer [1]
plat: add device syncgen [1]
plat: add device hdmi
plat: add device spdif playback
plat: add device arm-pmu
plat: register Glasgow power monitor
plat: add device nxp-v4l2
plat: add device usb_ehci
plat: register spidev
plat: add device gpio_keyboard
plat: add device lf2000-nand
hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
Serial: AMBA PL011 UART driver
uart-pl011.0: ttyS0 at MMIO 0xc00a1000 (irq = 7) is a PL011 rev3
peri_clk_rate base=f00a9000, level=0, src=1, div=43+1, CLKGEN[0]=564
console [ttyS0] enabled
uart-pl011.1: ttyS1 at MMIO 0xc00a0000 (irq = 6) is a PL011 rev3
uart-pl011.2: ttyS2 at MMIO 0xc00a2000 (irq = 8) is a PL011 rev3
uart-pl011.3: ttyS3 at MMIO 0xc00a3000 (irq = 9) is a PL011 rev3
uart-pl011.4: ttyS4 at MMIO 0xc006d000 (irq = 10) is a PL011 rev3
uart-pl011.5: ttyS5 at MMIO 0xc006f000 (irq = 11) is a PL011 rev3
bio: create slab <bio-0> at 0
pl08xdmac pl08xdmac.0: Unbalanced pm_runtime_enable!
pl08xdmac pl08xdmac.0: initialized 8 virtual memcpy channels
pl08xdmac pl08xdmac.0: initialized 16 virtual slave channels
pl08xdmac pl08xdmac.0: DMA: PL080 rev1 at 0xc0000000 irq 1
pl08xdmac pl08xdmac.1: Unbalanced pm_runtime_enable!
pl08xdmac pl08xdmac.1: initialized 8 virtual memcpy channels
pl08xdmac pl08xdmac.1: initialized 15 virtual slave channels
pl08xdmac pl08xdmac.1: DMA: PL080 rev1 at 0xc0001000 irq 2
nxp_ion_probe success!!!
ssp-pl022 ssp-pl022.0: ARM PL022 driver, device ID: 0x00041022
pl022: mapped registers from 0xc005b000 to f005b000
peri_clk_rate base=f00ac000, level=0, src=2, div=7+1, CLKGEN[0]=e8
ssp-pl022 ssp-pl022.0: setup for DMA on RX dma1chan7, TX dma1chan6
spi spi0.0: setup mode 0, 8 bits/w, 3125000 Hz max --> 0
ssp-pl022 ssp-pl022.0: will use autosuspend for runtime pm, delay 10ms
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Linux media interface: v0.10
Linux video capture interface: v2.00
Advanced Linux Sound Architecture Driver Version 1.0.25.
Switching to clocksource source timer
Unable to handle kernel paging request at virtual address ffffffff
pgd = c0004000
[ffffffff] *pgd=6cdfe821, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1] PREEMPT SMP ARM
Modules linked in:
CPU: 0 Not tainted (3.4.24-jbevren #3)
PC is at kmem_cache_alloc+0x48/0x120
LR is at con_insert_unipair+0xb8/0x104
pc : [<c00c7dfc>] lr : [<c026f8fc>] psr: a0000013
sp : ec843ed8 ip : c0ff2c60 fp : 00002660
r10: 0000005f r9 : c026f8fc r8 : c0648094
r7 : 0000005f r6 : 000000d0 r5 : ec802200 r4 : ffffffff
r3 : ec842000 r2 : c062a6e8 r1 : 00000000 r0 : 009e2000
Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 10c5387d Table: 4000404a DAC: 00000015
I'm building the kernel natively on the LTV, using a Devuan Jessie install on internal flash (more on that in another post later on)
