Skip to content

Instantly share code, notes, and snippets.

@ryo
Last active March 31, 2016 06:09
Show Gist options
  • Save ryo/c5c2118cd750f31492f56cf270f8f1df to your computer and use it in GitHub Desktop.
Save ryo/c5c2118cd750f31492f56cf270f8f1df to your computer and use it in GitHub Desktop.
NetBSD/imx7 boot
U-Boot 2014.04-at1 (Mar 22 2016 - 16:50:23)
CPU: Freescale i.MX7D rev1.1 at 792 MHz
CPU: Temperature: can't get valid data!
Reset cause: POR
I2C: ready
DRAM: 512 MiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
SF: Detected N25Q64 with page size 256 Bytes, erase size 4 KiB, total 8 MiB
In: serial
Out: serial
Err: serial
Found PFUZE300! deviceid 0x30, revid 0x11
Board Type: Armadillo-IoT G3(0a000000)
Revison: 0001
S/N: ****
DRAM: 00001d05
XTAL: 00
Net: Phy not found
FEC0
=> tftpboot
*** Warning: no boot file name; using 'AC110458.img'
Using FEC0 device
TFTP from server 172.17.4.40; our IP address is 172.17.4.88
Filename 'AC110458.img'.
Load address: 0x80800000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
##########################
1.8 MiB/s
done
Bytes transferred = 5150980 (4e9904 hex)
=> bootm
## Booting kernel from Legacy Image at 80800000 ...
Image Name: NetBSD/ 7.99.26
Image Type: ARM NetBSD Kernel Image (uncompressed)
Data Size: 5150916 Bytes = 4.9 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
ERROR: booting os 'NetBSD' (2) is not supported
=> go 80008000
## Starting application at 0x80008000 ...
PC=0x80008024
SP=0x9df61d90
CPSR=0x600000d3
CBAR=0x31000000
<cortex_init>@</cortex_init>
<mmu_init_table></mmu_init_table>
<arm_cpuinit>FG01H1IJKLM</arm_cpuinit>
@BC-FG01H1IJKLM
MULTIPROCESSOR hatched!
jump to start()
uboot arg = 0x1, 0x9df6425c, 0x9df6425c, 0x80008000
NetBSD/evbarm (armadillo_iot_g3, digprog=0x00720011) booting ...
initarm: Configuring system (2 cpus, hatched 0x2), CLIDR=1210000043 CTR=0x84448003
arm32_bootmem_init: memstart=0x80000000, memsize=0x20000000, kernelstart=0x80008000
arm32_bootmem_init: kernelend=0x8051e000
arm32_bootmem_init: adding 64881 free pages: [0x8051e000..0x9fffffff] (VA 0x8051e000)
arm32_bootmem_init: adding 4 free pages: [0x80000000..0x80007fff] (VA 0x80000000)
arm32_kernel_vm_init: 1 L2 pages are needed to map 0x55a000 kernel bytes
arm32_kernel_vm_init: allocating page tables for kerneladd_pages: adding pv 0x804f2014 (pa 0x8051e000, va 0x8051e000, 1 pages) at tail
vmadd_pages: appending pv 0x804f30d0 (0x80520000..0x80523fff) to 0x8051e000..0x8051ffff
add_pages: appending pv 0x804f22d4 (0x80524000..0x80525fff) to 0x8051e000..0x80523fff
add_pages: appending pv 0x804f22e8 (0x80526000..0x80527fff) to 0x8051e000..0x80525fff
add_pages: appending pv 0x804f22fc (0x80528000..0x80529fff) to 0x8051e000..0x80527fff
add_pages: appending pv 0x804f2310 (0x8052a000..0x8052bfff) to 0x8051e000..0x80529fff
add_pages: appending pv 0x804f2324 (0x8052c000..0x8052dfff) to 0x8051e000..0x8052bfff
add_pages: appending pv 0x804f2338 (0x8052e000..0x8052ffff) to 0x8051e000..0x8052dfff
add_pages: appending pv 0x804f234c (0x80530000..0x80531fff) to 0x8051e000..0x8052ffff
add_pages: appending pv 0x804f2360 (0x80532000..0x80533fff) to 0x8051e000..0x80531fff
arm32_kernel_vm_init: allocating stacks
add_pages: appending pv 0x804f281c (0x80534000..0x80537fff) to 0x8051e000..0x80533fff
add_pages: appending pv 0x804f2808 (0x80538000..0x8053bfff) to 0x8051e000..0x80537fff
add_pages: appending pv 0x804f27f4 (0x8053c000..0x8053ffff) to 0x8051e000..0x8053bfff
add_pages: appending pv 0x804f27e0 (0x80540000..0x80543fff) to 0x8051e000..0x8053ffff
add_pages: appending pv 0x804f27c8 (0x80544000..0x80547fff) to 0x8051e000..0x80543fff
add_pages: appending pv 0x804f2830 (0x80548000..0x80549fff) to 0x8051e000..0x80547fff
add_pages: appending pv 0x804f2058 (0x8054a000..0x8054dfff) to 0x8051e000..0x80549fff
Creating L1 page table at 0x80520000
arm32_kernel_vm_init: adding L2 pt (VA 0x8051e000, PA 0x8051e000) for VA 0x80000000 (kernel)
arm32_kernel_vm_init: adding L2 pt (VA 0x80524000, PA 0x80524000) for VA 0xc0000000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x80526000, PA 0x80526000) for VA 0xc0800000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x80528000, PA 0x80528000) for VA 0xc1000000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x8052a000, PA 0x8052a000) for VA 0xc1800000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x8052c000, PA 0x8052c000) for VA 0xc2000000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x8052e000, PA 0x8052e000) for VA 0xc2800000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x80530000, PA 0x80530000) for VA 0xc3000000 (vm)
arm32_kernel_vm_init: adding L2 pt (VA 0x80532000, PA 0x80532000) for VA 0xc3800000 (vm)
Mapping kernel
arm32_kernel_vm_init: adding chunk for kernel text 0x80008000..0x803d9fff (VA 0x80008000)
add_pages: adding pv 0x804f2000 (pa 0x80008000, va 0x80008000, 489 pages) before pa 0x8051e000
arm32_kernel_vm_init: adding chunk for kernel data/bss 0x803da000..0x8051dfff (VA 0x803da000)
add_pages: adding pv 0x804f1fec (pa 0x803da000, va 0x803da000, 162 pages) before pa 0x8051e000
Listing Chunks
arm32_kernel_vm_init: pv 0x804f2000: chunk VA 0x80008000..0x803d9fff (PA 0x80008000, prot 7, cache 1)
arm32_kernel_vm_init: pv 0x804f1fec: chunk VA 0x803da000..0x8051dfff (PA 0x803da000, prot 3, cache 1)
arm32_kernel_vm_init: pv 0x804f2014: chunk VA 0x8051e000..0x8054dfff (PA 0x8051e000, prot 3, cache 1)
Mapping Chunks
arm32_kernel_vm_init: mapping chunk VA 0x80000000..0x80007fff (PA 0x80000000, prot 3, cache 1)
pmap_map_chunk: pa=0x80000000 va=0x80000000 size=0x8000 resid=0x8000 prot=0x3 cache=1
PPPP
arm32_kernel_vm_init: mapping chunk VA 0x80008000..0x803d9fff (PA 0x80008000, prot 7, cache 1)
pmap_map_chunk: pa=0x80008000 va=0x80008000 size=0x3d2000 resid=0x3d2000 prot=0x7 cache=1
PPPPLLLLLLLLLLLLLLLSSLLLLLLLLLLLLLPPPPP
arm32_kernel_vm_init: mapping last chunk VA 0x803da000..0x9fffffff (PA 0x803da000, prot 3, cache 1)
pmap_map_chunk: pa=0x803da000 va=0x803da000 size=0x1fc26000 resid=0x1fc26000 prot=0x3 cache=1
PPPLLSSSSSSSSSSSSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsS
devmap: 30000000 -> 30bfffff @ ff000000
pmap_map_chunk: pa=0x30000000 va=0xff000000 size=0xc00000 resid=0xc00000 prot=0x3 cache=0
SSSSSSSSSSSS
devmap: 31000000 -> 313fffff @ ffc00000
pmap_map_chunk: pa=0x31000000 va=0xffc00000 size=0x400000 resid=0x400000 prot=0x3 cache=0
SSSS
Physical Virtual Num
Starting Ending Starting Ending Pages
SDRAM: 0x80000000 0x9fffffff 0x80000000 0x9fffffff 65536
text section: 0x80008000 0x803d9fff 0x80008000 0x803d9fff 489
data section: 0x80440000 0x804f18c8 0x80440000 0x804f18c8 89
bss section: 0x804f18c8 0x8051c700 0x804f18c8 0x8051c700 23
L1 page directory: 0x80520000 0x80523fff 0x80520000 0x80523fff 2
ABT stack (CPU 0): 0x80534000 0x80535fff 0x80534000 0x80535fff 1
FIQ stack (CPU 0): 0x80538000 0x80539fff 0x80538000 0x80539fff 1
IRQ stack (CPU 0): 0x8053c000 0x8053dfff 0x8053c000 0x8053dfff 1
UND stack (CPU 0): 0x80540000 0x80541fff 0x80540000 0x80541fff 1
IDLE stack (CPU 0): 0x80544000 0x80545fff 0x80544000 0x80545fff 1
SVC stack: 0x80548000 0x80549fff 0x80548000 0x80549fff 1
Message Buffer: 0x8054a000 0x8054dfff 0x8054a000 0x8054dfff 2
Free Memory: 0x8054e000 0x9fffffff 64857
Free Memory: 0x80000000 0x80007fff 4
TTBR0=0x8fffc05b TTBR1=0x8fffc05b TTBCR=0x1 CONTEXTIDR=0
switching to new L1 page table @0x80520000... ttb (TTBCR=0x11 TTBR0=0x8052005b TTBR1=0x8052005b) hatchlingscpu_boot_secondary_processors: writing mbox with 0x2
OK
nfreeblocks = 2, free_pages = 64861 (0xfd5d)
bootstrap done.
vectors vbar=0x8001dfe0 0x8001dfe0
init subsystems: stacks vectors undefined page pmap_physload pmap kpm tlb0 kcpusets locks l1pt cache(l1pt) specials pools [ Kernel symbol table missing! ]
done.
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 7.99.26 (ARMADILLO-IOT-G3) #3: Thu Mar 31 11:04:04 JST 2016
ryo@moveq:/usr/src/sys/arch/evbarm/compile/ARMADILLO-IOT-G3
total memory = 512 MB
avail memory = 501 MB
sysctl_createv: sysctl_create(machine_arch) returned 17
mainbus0 (root)
cpu0 at mainbus0 core 0: 792 MHz Cortex-A7 r0p5 (Cortex V7A core)
cpu0: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu0: 32KB/32B 2-way L1 VIPT Instruction cache
cpu0: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
cpu0: 512KB/64B 8-way write-through L2 PIPT Unified cache
vfp0 at cpu0: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
cpu1 at mainbus0 core 1
armperiph0 at mainbus0
armgic0 at armperiph0: Generic Interrupt Controller, 160 sources (151 valid)
armgic0: 32 Priorities, 128 SPIs, 7 PPIs, 16 SGIs
armgtmr0 at armperiph0: ARMv7 Generic 64-bit Timer (7920 kHz)
armgtmr0: interrupting on irq 27
axi0 at mainbus0: Advanced eXtensible Interface
imxccm0 at axi0 addr 0x30380000: Clock Control Module
IMX7CLK_OSC_FREQ clock=24000000
IMX7CLK_ARM_PLL clock=792000000
IMX7CLK_SYS_PLL clock=480000000
IMX7CLK_ENET_PLL clock=1000000000
IMX7CLK_AUDIO_PLL clock=162000000
IMX7CLK_VIDEO_PLL clock=162000000
IMX7CLK_DDR_PLL clock=528000000
IMX7CLK_USB_PLL clock=480000000
IMX7CLK_SYS_PLL_PFD0 clock=392727272
IMX7CLK_SYS_PLL_PFD1 clock=332307692
IMX7CLK_SYS_PLL_PFD2 clock=270000000
IMX7CLK_SYS_PLL_PFD3 clock=480000000
IMX7CLK_SYS_PLL_PFD3 clock=480000000
IMX7CLK_SYS_PLL_PFD4 clock=392727272
IMX7CLK_SYS_PLL_PFD5 clock=480000000
IMX7CLK_SYS_PLL_PFD6 clock=480000000
IMX7CLK_SYS_PLL_PFD7 clock=480000000
IMX7CLK_ARM_A7_CLK_ROOT clock=792000000
IMX7CLK_ARM_M4_CLK_ROOT clock=240000000
IMX7CLK_MAIN_AXI_CLK_ROOT clock=332307692
IMX7CLK_ENET_AXI_CLK_ROOT clock=98181818
IMX7CLK_AHB_CLK_ROOT clock=67500000
IMX7CLK_IPG_CLK_ROOT clock=33750000
IMX7CLK_DRAM_CLK_ROOT clock=264000000
IMX7CLK_DRAM_ALT_CLK_ROOT clock=24000000
IMX7CLK_NAND_USDHC_BUS_CLK_ROOT clock=67500000
IMX7CLK_USDHC1_CLK_ROOT clock=196363636
IMX7CLK_USDHC2_CLK_ROOT clock=196363636
IMX7CLK_USDHC3_CLK_ROOT clock=196363636
imxocotp0 at axi0 addr 0x30350000: On-Chip OTP Controller
imxocotp0: OCOTP_VERSION 5.0.0
imxgpio0 at axi0 addr 0x30260000 intr 96 irqbase 256: interrupts 256..287
imxgpio1 at axi0 addr 0x30250000 intr 98 irqbase 288: interrupts 288..319
imxgpio2 at axi0 addr 0x30240000 intr 100 irqbase 320: interrupts 320..351
imxgpio3 at axi0 addr 0x30230000 intr 102 irqbase 352: interrupts 352..383
imxgpio4 at axi0 addr 0x30220000 intr 104 irqbase 384: interrupts 384..415
imxgpio5 at axi0 addr 0x30210000 intr 106 irqbase 416: interrupts 416..447
imxgpio6 at axi0 addr 0x30200000 intr 108 irqbase 448: interrupts 448..479
imxiomux0 at axi0 addr 0x30330000: IOMUX Controller
imxuart4 at axi0 addr 0x30a70000 intr 62
imxuart4: console
sdhc0 at axi0 addr 0x30b40000 intr 54: Ultra Secured Digial Host Controller
sdhc0: SDHC 3.0, rev 0, 32-bit ADMA2, 196363 kHz, HS 1.8V 3.0V 3.3V, re-tuning mode 1 (128s timer), 4096 byte blocks
sdmmc0 at sdhc0 slot 0
sdhc1 at axi0 addr 0x30b50000 intr 55: Ultra Secured Digial Host Controller
sdhc1: SDHC 3.0, rev 0, 32-bit ADMA2, 196363 kHz, HS 1.8V 3.0V 3.3V, re-tuning mode 1 (128s timer), 4096 byte blocks
sdmmc1 at sdhc1 slot 0
sdhc2 at axi0 addr 0x30b60000 intr 56: Ultra Secured Digial Host Controller
sdhc2: SDHC 3.0, rev 0, 32-bit ADMA2, 196363 kHz, HS 1.8V 3.0V 3.3V, re-tuning mode 1 (128s timer), 4096 byte blocks
sdmmc2 at sdhc2 slot 0
imxwdog0 at axi0 addr 0x30280000 intr 110: i.MX Watchdog Timer, default period is 10 seconds
imxwdog1 at axi0 addr 0x30290000 intr 111: i.MX Watchdog Timer, default period is 10 seconds
imxwdog2 at axi0 addr 0x302a0000 intr 42: i.MX Watchdog Timer, default period is 10 seconds
imxwdog3 at axi0 addr 0x302b0000 intr 141: i.MX Watchdog Timer, default period is 10 seconds
enet0 at axi0 addr 0x30be0000 intr 150: Gigabit Ethernet Controller
enet0: Ethernet address 80:2d:00:00:00:11
enet1 at axi0 addr 0x30bf0000 intr 132: Gigabit Ethernet Controller
enet1: Ethernet address 00:00:00:00:0c:1b
imxsnvs0 at axi0 addr 0x30370000: Secure Non-Volatile Storage
cpu_boot_secondary_processors: writing mbox with 0x2
cpu_hatch(cpu1): vectors vbar=0x8001dfe0 stacks tlbcpu1: 792 MHz Cortex-A7 r0p5 (Cortex V7A core)
cpu1: DC enabled IC enabled WB disabled EABT branch prediction enabled
cpu1: 32KB/32B 2-way L1 VIPT Instruction cache
cpu1: 32KB/64B 4-way write-back-locking-C L1 PIPT Data cache
cpu1: 512KB/64B 8-way write-through L2 PIPT Unified cache
vfpvfp1 at cpu1: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
interrupts md(0x8000d164) done!
gpio0 at imxgpio0: 32 pins
gpio1 at imxgpio1: 32 pins
gpio2 at imxgpio2: 32 pins
gpio3 at imxgpio3: 32 pins
gpio4 at imxgpio4: 32 pins
gpio5 at imxgpio5: 32 pins
gpio6 at imxgpio6: 32 pins
sdmmc2: mem init failed
ld0 at sdmmc2: <0x13:0x014e:Q1J55L:0x00:0x0746762c:0x000>
ld0: 1024 MB, 1040 cyl, 32 head, 63 sec, 512 bytes/sect x 2097152 sectors
sdhc2: data crc error
ld0c: error reading fsbn 0 (ld0 bn 0; cn 0 tn 0 sn 0)
ld0: dos partition I/O error
sdhc2: data end bit error
sdhc2: data crc error
ld0c: error reading fsbn 0 of 0-31 (ld0 bn 0; cn 0 tn 0 sn 0)
sdhc2: data crc error
ld0c: error reading fsbn 1 (ld0 bn 1; cn 0 tn 0 sn 1)
ld0: 1-bit width, 196.363 MHz
boot device: <unknown>
root device: enet1
dump device:
file system (default generic):
root on enet1
nfs_boot: trying static
nfs_boot: client_addr=172.17.4.88
nfs_boot: gateway=172.17.4.1
nfs_boot: netmask=255.255.0.0
nfs_boot: server=172.17.4.40
nfs_boot: root=172.17.4.40:/src/boot/pxe-g3/
root on 172.17.4.40:/src/boot/pxe-g3/
root file system type: nfs
kern.module.path=/stand/evbarm/7.99.26/modules
WARNING: preposterous TOD clock time
WARNING: using filesystem time
WARNING: CHECK AND RESET THE DATE!
init path (default /sbin/init):
init: trying /sbin/init
Thu Mar 31 06:04:39 UTC 2016
Not checking /: fs_passno = 0 in /etc/fstab
Starting file system checks:
random_seed: /var/db/entropy-file: Not present
Setting tty flags.
Setting sysctl variables:
ddb.onpanic: 1 -> 0
Starting network.
Hostname: armadillo-g3
IPv6 mode: host
Configuring network interfaces:.
Adding interface aliases:.
Waiting for DAD to complete for statically configured addresses...
Building databases: dev, utmp, utmpx.
Starting syslogd.
Mounting all file systems...
Clearing temporary files.
Creating a.out runtime link editor directory cache.
Checking quotas: done.
/etc/rc: WARNING: No swap space configured!
/etc/rc.d/swap2 exited with code 1
Starting virecover.
Checking for core dump...
savecore: no core dump (no dumpdev)
Starting local daemons:.
Updating motd.
Starting sshd.
postfix: rebuilding /etc/mail/aliases (missing /etc/mail/aliases.db)
Starting inetd.
Starting cron.
The following components reported failures:
/etc/rc.d/swap2
See /var/run/rc.log for more information.
Thu Mar 31 06:05:07 UTC 2016
NetBSD/evbarm (armadillo-g3) (console)
login: root
Mar 31 06:05:11 armadillo-g3 login: ROOT LOGIN (root) on tty console
Last login: Thu Mar 31 06:05:56 2016 on console
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 7.99.26 (ARMADILLO-IOT-G3) #3: Thu Mar 31 11:04:04 JST 2016
i.MX7
Terminal type? [vt100]
# uname -a
NetBSD armadillo-g3 7.99.26 NetBSD 7.99.26 (ARMADILLO-IOT-G3) #3: Thu Mar 31 11:04:04 JST 2016 ryo@moveq:/usr/src/sys/arch/evbarm/compile/ARMADILLO-IOT-G3 evbarm
# top -1|head -30
load averages: 0.82, 0.25, 0.09; up 0+00:01:36 06:05:42
14 processes: 1 runnable, 11 sleeping, 2 on CPU
CPU0 states: 0.0% user, 0.0% nice, 2.0% system, 4.9% interrupt, 93.1% idle
CPU1 states: 0.0% user, 10.8% nice, 42.2% system, 0.0% interrupt, 47.1% idle
Memory: 73M Act, 16K Wired, 6176K Exec, 48M File, 411M Free
Swap:
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
291 root 31 5 18M 14M RUN/1 0:28 53.69% 49.51% /usr/sbin/ma
1 root 84 0 3952K 1320K wait/0 0:01 0.00% 0.00% init
436 root 43 0 4272K 1536K CPU/1 0:00 0.00% 0.00% top -1
0 root 0 0 0K 8352K CPU/0 0:00 0.00% 0.00% [system]
173 root 85 0 6664K 1920K kqueue/1 0:00 0.00% 0.00% /usr/sbin/sy
644 root 85 0 4032K 1440K wait/1 0:00 0.00% 0.00% -sh
414 root 85 0 3680K 1072K pipe_r/0 0:00 0.00% 0.00% head -n30
631 root 84 0 8888K 3072K wait/1 0:00 0.00% 0.00% login
342 root 84 0 11M 2536K select/0 0:00 0.00% 0.00% /usr/sbin/ss
665 postfix 83 0 9824K 3216K kqueue/0 0:00 0.00% 0.00% qmgr -l -t u
683 postfix 83 0 9824K 3192K kqueue/1 0:00 0.00% 0.00% pickup -l -t
687 root 83 0 9824K 2336K kqueue/1 0:00 0.00% 0.00% /usr/libexec
561 root 82 0 4072K 1112K kqueue/0 0:00 0.00% 0.00% /usr/sbin/in
664 root 81 0 3848K 1392K nanosl/1 0:00 0.00% 0.00% /usr/sbin/cr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment