Skip to content

Instantly share code, notes, and snippets.

@sergev
Last active October 26, 2019 18:58
Show Gist options
  • Save sergev/bae570e37d17cfaac0c34c27384c8241 to your computer and use it in GitHub Desktop.
Save sergev/bae570e37d17cfaac0c34c27384c8241 to your computer and use it in GitHub Desktop.
ADMA error when booting latest Linux kernel on pic32mz-da starter kit, with DAR169 chip
dask # boot
1733830 bytes read in 252 ms (6.6 MiB/s)
7343 bytes read in 8 ms (895.5 KiB/s)
## Booting kernel from Legacy Image at 88500000 ...
Image Name:
Created: 2019-10-25 0:59:01 UTC
Image Type: MIPS Linux Kernel Image (gzip compressed)
Data Size: 1733766 Bytes = 1.7 MiB
Load Address: 88000000
Entry Point: 88000400
Verifying Checksum ... OK
## Flattened Device Tree blob at 88c00000
Booting using the fdt blob at 0x88c00000
Uncompressing Kernel Image ... OK
Device Id: 0x08a4e053, Device Ver: 0x0003
Primary instruction cache 32kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 16 bytes
Zone ranges:
Normal [mem 0x0000000008000000-0x0000000009ffffff]
Movable zone start for each node
Early memory node ranges
node 0: [mem 0x0000000008000000-0x0000000009ffffff]
Initmem setup node 0 [mem 0x0000000008000000-0x0000000009ffffff]
Built 1 zonelists, mobility grouping on. Total pages: 8128
Kernel command line: console=ttyS1,115200n8 root=/dev/mmcblk0p1 rootwait
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
mem auto-init: stack:off, heap alloc:off, heap free:off
Memory: 28672K/32768K available (2641K kernel code, 168K rwdata, 668K rodata, 164K init, 74K bss, 4096K reserved, 0K cma-reserved)
NR_IRQS: 256
random: get_random_bytes called from start_kernel+0x310/0x4bc with crng_init=0
CPU Clock: 200MHz
clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604467 ns
sched_clock: 32 bits at 100MHz, resolution 10ns, wraps every 21474836475ns
Console: colour dummy device 80x25
Calibrating delay loop... 199.06 BogoMIPS (lpj=995328)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
devtmpfs: initialized
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 256 (order: -1, 3072 bytes, linear)
pinctrl core: initialized pinctrl subsystem
pic32-clk: dt requests SOSC.
1f822200.serial: ttyPIC1 at MMIO 0x1f822200 (irq = 0, base_baud = 6250000) is a pic32-uart
pic32-uart 1f822200.serial: pic32_uart_probe: uart(1) driver initialized.
1f822600.serial: ttyPIC3 at MMIO 0x1f822600 (irq = 0, base_baud = 6250000) is a pic32-uart
pic32-uart 1f822600.serial: pic32_uart_probe: uart(3) driver initialized.
SCSI subsystem initialized
clocksource: Switched to clocksource MIPS
workingset: timestamp_bits=30 max_order=13 bucket_order=0
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler mq-deadline registered
io scheduler kyber registered
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: SDHCI controller on sdhci [sdhci] using ADMA
pic32-sdhci sdhci: Successfully added sdhci host
hidraw: raw HID events driver (C) Jiri Kosina
Warning: unable to open an initial console.
Waiting for root device /dev/mmcblk0p1...
mmc0: ADMA error: 0x02000002
mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00000101
mmc0: sdhci: Blk size: 0x00007008 | Blk cnt: 0x00000001
mmc0: sdhci: Argument: 0x00000000 | Trn mode: 0x00000013
mmc0: sdhci: Present: 0x01fb0000 | Host ctl: 0x00000091
mmc0: sdhci: Power: 0x0000000f | Blk gap: 0x00000000
mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x00001007
mmc0: sdhci: Timeout: 0x00000009 | Int stat: 0x00000000
mmc0: sdhci: Int enab: 0x02ff008b | Sig enab: 0x02ff008b
mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
mmc0: sdhci: Caps: 0x21e8c899 | Caps_1: 0x00000100
mmc0: sdhci: Cmd: 0x0000333a | Max curr: 0x000c0c0c
mmc0: sdhci: Resp[0]: 0x00000920 | Resp[1]: 0x00ee7f7f
mmc0: sdhci: Resp[2]: 0x325b5900 | Resp[3]: 0x00400e00
mmc0: sdhci: Host ctl2: 0x00000000
mmc0: sdhci: ADMA Err: 0x00000004 | ADMA Ptr: 0x09deb210
mmc0: sdhci: ============================================
mmc0: sdhci: 09deb200: DMA 0x09dfaf00, LEN 0x0008, Attr=0x21
mmc0: sdhci: 09deb208: DMA 0x00000000, LEN 0x0000, Attr=0x03
mmc0: error -5 whilst initialising SD card
mmc0: ADMA error: 0x02000002
mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00000101
mmc0: sdhci: Blk size: 0x00007008 | Blk cnt: 0x00000001
mmc0: sdhci: Argument: 0x00000000 | Trn mode: 0x00000013
mmc0: sdhci: Present: 0x01fb0000 | Host ctl: 0x00000091
mmc0: sdhci: Power: 0x0000000f | Blk gap: 0x00000000
mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x00001007
mmc0: sdhci: Timeout: 0x00000009 | Int stat: 0x00000000
mmc0: sdhci: Int enab: 0x02ff008b | Sig enab: 0x02ff008b
mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
mmc0: sdhci: Caps: 0x21e8c899 | Caps_1: 0x00000100
mmc0: sdhci: Cmd: 0x0000333a | Max curr: 0x000c0c0c
mmc0: sdhci: Resp[0]: 0x00000920 | Resp[1]: 0x00ee7f7f
mmc0: sdhci: Resp[2]: 0x325b5900 | Resp[3]: 0x00400e00
mmc0: sdhci: Host ctl2: 0x00000000
mmc0: sdhci: ADMA Err: 0x00000004 | ADMA Ptr: 0x09deb210
mmc0: sdhci: ============================================
mmc0: sdhci: 09deb200: DMA 0x09dfaf00, LEN 0x0008, Attr=0x21
mmc0: sdhci: 09deb208: DMA 0x00000000, LEN 0x0000, Attr=0x03
mmc0: error -5 whilst initialising SD card
mmc0: ADMA error: 0x02000002
mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00000101
mmc0: sdhci: Blk size: 0x00007008 | Blk cnt: 0x00000001
mmc0: sdhci: Argument: 0x00000000 | Trn mode: 0x00000013
mmc0: sdhci: Present: 0x01fb0000 | Host ctl: 0x00000091
mmc0: sdhci: Power: 0x0000000f | Blk gap: 0x00000000
mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x00002007
mmc0: sdhci: Timeout: 0x00000009 | Int stat: 0x00000000
mmc0: sdhci: Int enab: 0x02ff008b | Sig enab: 0x02ff008b
mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
mmc0: sdhci: Caps: 0x21e8c899 | Caps_1: 0x00000100
mmc0: sdhci: Cmd: 0x0000333a | Max curr: 0x000c0c0c
mmc0: sdhci: Resp[0]: 0x00000920 | Resp[1]: 0x00ee7f7f
mmc0: sdhci: Resp[2]: 0x325b5900 | Resp[3]: 0x00400e00
mmc0: sdhci: Host ctl2: 0x00000000
mmc0: sdhci: ADMA Err: 0x00000004 | ADMA Ptr: 0x09deb210
mmc0: sdhci: ============================================
mmc0: sdhci: 09deb200: DMA 0x09dfaf00, LEN 0x0008, Attr=0x21
mmc0: sdhci: 09deb208: DMA 0x00000000, LEN 0x0000, Attr=0x03
mmc0: error -5 whilst initialising SD card
mmc0: ADMA error: 0x02000002
mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
mmc0: sdhci: Sys addr: 0x00000000 | Version: 0x00000101
mmc0: sdhci: Blk size: 0x00007008 | Blk cnt: 0x00000001
mmc0: sdhci: Argument: 0x00000000 | Trn mode: 0x00000013
mmc0: sdhci: Present: 0x01fb0000 | Host ctl: 0x00000091
mmc0: sdhci: Power: 0x0000000f | Blk gap: 0x00000000
mmc0: sdhci: Wake-up: 0x00000000 | Clock: 0x00004007
mmc0: sdhci: Timeout: 0x00000009 | Int stat: 0x00000000
mmc0: sdhci: Int enab: 0x02ff008b | Sig enab: 0x02ff008b
mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
mmc0: sdhci: Caps: 0x21e8c899 | Caps_1: 0x00000100
mmc0: sdhci: Cmd: 0x0000333a | Max curr: 0x000c0c0c
mmc0: sdhci: Resp[0]: 0x00000920 | Resp[1]: 0x00ee7f7f
mmc0: sdhci: Resp[2]: 0x325b5900 | Resp[3]: 0x00400e00
mmc0: sdhci: Host ctl2: 0x00000000
mmc0: sdhci: ADMA Err: 0x00000004 | ADMA Ptr: 0x09deb210
mmc0: sdhci: ============================================
mmc0: sdhci: 09deb200: DMA 0x09dfaf00, LEN 0x0008, Attr=0x21
mmc0: sdhci: 09deb208: DMA 0x00000000, LEN 0x0000, Attr=0x03
mmc0: error -5 whilst initialising SD card
random: fast init done
random: crng init done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment