Skip to content

Instantly share code, notes, and snippets.

@shriyasharma11
Created May 15, 2024 10:42
Show Gist options
  • Save shriyasharma11/12136b710edaa7eac2e1269a903f8cef to your computer and use it in GitHub Desktop.
Save shriyasharma11/12136b710edaa7eac2e1269a903f8cef to your computer and use it in GitHub Desktop.
First successful loading of Linux kernel but encountering SD card initialization errors. Tested with 16 GB Sandisk card, using saute0212's cva6 fork. On line #597 the board was manually reset using CPU_Reset push button. There seems to be an issue with the SD card used, will test with 4 GB once it arrives.
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2024.05.15 11:27:12 =~=~=~=~=~=~=~=~=~=~=~=
.Hello World!
init SPI
status: 0x0000000000000025
status: 0x0000000000000025
SPI initialized!
initializing SD...
SD command cmd0 response : 01
SD command cmd55 response : 01
SD command cmd41 response : 01
SD command cmd55 response : 01
SD command cmd41 response : 01
SD command cmd55 response : 01
SD command cmd41 response : 00
sd initialized!
gpt partition table header:
signature: 5452415020494645
revision: 00010000
size: 0000005C
crc_header: 2232D27E
reserved: 00000000
current lba: 0000000000000001
backup lda: 0000000001DACBFF
partition entries lba: 0000000000000002
number partition entries: 00000080
size partition entries: 00000080
gpt partition entry 00
partition type guid: D5F7127456A1134B81DC867174929325
partition guid: 2AA6EC466034724E9B6D19C0B4DFB57F
first lba: 0000000000000800
last lba: 0000000000007464
attributes: 0000000000000000
name: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
gpt partition entry 01
partition type guid: AF3DC60F838472478E793D69D8477DE4
partition guid: 78DBA74405A2C045B9D9DDBDA647AF6D
first lba: 0000000000100000
last lba: 0000000001DACBDE
attributes: 0000000000000000
name: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
gpt partition entry 02
partition type guid: 00000000000000000000000000000000
partition guid: 00000000000000000000000000000000
first lba: 0000000000000000
last lba: 0000000000000000
attributes: 0000000000000000
name: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
gpt partition entry 03
partition type guid: 00000000000000000000000000000000
partition guid: 00000000000000000000000000000000
first lba: 0000000000000000
last lba: 0000000000000000
attributes: 0000000000000000
name: 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
copying boot image ........................... done!
[ 0.000000] OF: fdt: Ignoring memory range 0x80000000 - 0x80200000
[ 0.000000] Linux version 5.1.0-rc7 (michscha@toscana.ee.ethz.ch) (gcc version 8.2.0 (GCC)) #2 SMP Thu May 30 17:18:43 CEST 2019
[ 0.000000] initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000080200000-0x000000009fffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080200000-0x000000009fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080200000-0x000000009fffffff]
[ 0.000000] software IO TLB: mapped [mem 0x9b8fd000-0x9f8fd000] (64MB)
[ 0.000000] elf_hwcap is 0x112d
[ 0.000000] percpu: Embedded 15 pages/cpu s24280 r8192 d28968 u61440
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 128775
[ 0.000000] Kernel command line: earlyprintk
[ 0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[ 0.000000] Sorting __ex_table...
[ 0.000000] Memory: 436476K/522240K available (3709K kernel code, 226K rwdata, 1046K rodata, 6031K init, 797K bss, 85764K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0
[ 0.000000] plic: mapped 30 interrupts with 1 handlers for 2 contexts.
[ 0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x2e2049cda, max_idle_ns: 440795202628 ns
[ 0.000423] sched_clock: 64 bits at 12MHz, resolution 80ns, wraps every 4398046511080ns
[ 0.063738] printk: console [hvc0] enabled
[ 0.066436] Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=125000)
[ 0.071437] pid_max: default: 32768 minimum: 301
[ 0.084617] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.088049] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.126560] *** VALIDATE proc ***
[ 0.192992] rcu: Hierarchical SRCU implementation.
[ 0.230904] smp: Bringing up secondary CPUs ...
[ 0.232953] smp: Brought up 1 node, 1 CPU
[ 0.261120] devtmpfs: initialized
[ 0.335079] random: get_random_bytes called from setup_net+0x32/0x15c with crng_init=0
[ 0.347818] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.353277] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.383947] NET: Registered protocol family 16
[ 0.972726] usbcore: registered new interface driver usbfs
[ 0.980638] usbcore: registered new interface driver hub
[ 0.986006] usbcore: registered new device driver usb
[ 1.043761] clocksource: Switched to clocksource riscv_clocksource
[ 1.128270] NET: Registered protocol family 2
[ 1.169022] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes)
[ 1.173930] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 1.179495] TCP bind hash table entries: 4096 (order: 4, 65536 bytes)
[ 1.188531] TCP: Hash tables configured (established 4096 bind 4096)
[ 1.199550] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 1.204554] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 1.215834] NET: Registered protocol family 1
[ 1.255067] RPC: Registered named UNIX socket transport module.
[ 1.257440] RPC: Registered udp transport module.
[ 1.259210] RPC: Registered tcp transport module.
[ 1.260961] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 24.783795] workingset: timestamp_bits=62 max_order=17 bucket_order=0
[ 25.554476] NFS: Registering the id_resolver key type
[ 25.557479] Key type id_resolver registered
[ 25.559238] Key type id_legacy registered
[ 25.561349] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 26.156005] io scheduler mq-deadline registered
[ 26.158084] io scheduler kyber registered
[ 29.922006] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[ 30.013353] 10000000.uart: ttyS0 at MMIO 0x10000000 (irq = 1, base_baud = 1562500) is a 16550A
[ 31.091396] printk: console [ttyS0] enabled
[ 31.179121] xilinx_spi 20000000.xps-spi: at 0x20000000 mapped to 0x(____ptrval____), irq=6
[ 31.229368] libphy: Fixed MDIO Bus: probed
[ 31.267305] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 31.347521] mmc_spi spi0.0: SD/MMC host mmc0, no WP, no poweroff, cd polling
[ 31.381738] usbcore: registered new interface driver usbhid
[ 31.397058] usbhid: USB HID core driver
[ 31.475655] NET: Registered protocol family 10
[ 31.567429] Segment Routing with IPv6
[ 31.582565] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 31.639965] NET: Registered protocol family 17
[ 31.691212] Key type dns_resolver registered
[ 32.398785] Freeing unused kernel memory: 6028K
[ 32.411358] This architecture does not have kernel memory protection.
[ 32.428172] Run /init as init process
[ 32.492095] mmc0: host does not support reading read-only switch, assuming write-enable
[ 32.514353] mmc0: new SDHC card on SPI
[ 32.623400] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 32.970020] mmc0: SPI card removed
[ 33.479728] mmc0: error -110 whilst initialising SD card
[ 35.095756] mmc0: host does not support reading read-only switch, assuming write-enable
[ 35.118601] mmc0: new SDHC card on SPI
[ 35.274899] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 35.613700] mmcblk0: unable to read partition table
[ 35.693700] mmc0: SPI card removed
[ 36.291141] mmc0: host does not support reading read-only switch, assuming write-enable
[ 36.313886] mmc0: new SDHC card on SPI
[ 36.468499] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 36.943900] mmc0: SPI card removed
[ 37.574720] mmc0: host does not support reading read-only switch, assuming write-enable
[ 37.596890] mmc0: new SDHC card on SPI
[ 37.735123] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 38.235934] mmc0: SPI card removed
[ 38.831751] mmc0: host does not support reading read-only switch, assuming write-enable
[ 38.854897] mmc0: new SDHC card on SPI
[ 39.015562] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 39.280435] mmcblk0: unable to read partition table
[ 39.344003] mmc0: SPI card removed
[ 39.947815] mmc0: host does not support reading read-only switch, assuming write-enable
[ 39.968943] mmc0: new SDHC card on SPI
[ 40.105682] mmcblk0: mmc0:0000 SC16G 14.8 GiB
Starting logging: [ 40.380820] mmcblk0: unable to read partition table
[ 40.419800] mmc0: SPI card removed
[ 41.148149] mmc0: host does not support reading read-only switch, assuming write-enable
[ 41.170358] mmc0: new SDHC card on SPI
[ 41.380054] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 41.731772] mmcblk0: unable to read partition table
[ 41.835341] mmc0: SPI card removed
OK
[ 42.674518] mmc0: error -110 whilst initialising SD card
Initializing random number generator... [ 44.377861] mmc0: error -110 whilst initialising SD card
[ 45.187807] random: dd: uninitialized urandom read (512 bytes read)
done.
Starting rpcbind: [ 45.921917] mmc0: error -110 whilst initialising SD card
OK
[ 47.602647] mmc0: error -110 whilst initialising SD card
ifconfig: SIOCSIFHWADDR: No such device
[ 49.205356] mmc0: host does not support reading read-only switch, assuming write-enable
[ 49.227497] mmc0: new SDHC card on SPI
[ 49.395400] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 49.750202] mmcblk0: unable to read partition table
[ 49.826428] mmc0: SPI card removed
[ 50.414957] mmc0: host does not support reading read-only switch, assuming write-enable
[ 50.437246] mmc0: new SDHC card on SPI
[ 50.507831] random: ssh-keygen: uninitialized urandom read (32 bytes read)
[ 50.608810] mmcblk0: mmc0:0000 SC16G 14.8 GiB
Starting sshd: [ 51.127721] mmc0: SPI card removed
[ 51.697980] mmc0: error -110 whilst initialising SD card
[ 51.928289] random: sshd: uninitialized urandom read (32 bytes read)
[ 53.224595] mmc0: host does not support reading read-only switch, assuming write-enable
[ 53.246146] mmc0: new SDHC card on SPI
[ 53.415918] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 53.975952] mmc0: SPI card removed
[ 54.520803] mmc0: host does not support reading read-only switch, assuming write-enable
[ 54.542690] mmc0: new SDHC card on SPI
[ 54.725496] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 55.094847] mmc0: SPI card removed
[ 55.687304] mmc0: error -110 whilst initialising SD card
OK
NFS preparation skipped, OK
Welcome to Buildroot
buildroot login: [ 57.235306] mmc0: host does not support reading read-only switch, assuming write-enable
[ 57.257053] mmc0: new SDHC card on SPI
[ 57.380105] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 57.499636] mmcblk0: unable to read partition table
[ 57.531649] mmc0: SPI card removed
[ 57.964173] mmc0: host does not support reading read-only switch, assuming write-enable
[ 57.985516] mmc0: new SDHC card on SPI
[ 58.108587] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 58.228810] mmcblk0: unable to read partition table
[ 58.260736] mmc0: SPI card removed
[ 58.704483] mmc0: host does not support reading read-only switch, assuming write-enable
[ 58.726634] mmc0: new SDHC card on SPI
[ 58.853485] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 58.981102] mmcblk0: unable to read partition table
[ 59.025115] mmc0: SPI card removed
[ 59.424772] mmc0: error -110 whilst initialising SD card
[ 60.824095] mmc0: host does not support reading read-only switch, assuming write-enable
[ 60.846255] mmc0: new SDHC card on SPI
[ 60.972443] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 61.224493] mmcblk0: unable to read partition table
[ 61.268561] mmc0: SPI card removed
[ 61.678985] mmc0: error -110 whilst initialising SD card
[ 63.074210] mmc0: host does not support reading read-only switch, assuming write-enable
[ 63.095604] mmc0: new SDHC card on SPI
[ 63.222392] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 63.345036] mmcblk0: unable to read partition table
[ 63.389014] mmc0: SPI card removed
[ 63.814068] mmc0: host does not support reading read-only switch, assuming write-enable
[ 63.835507] mmc0: new SDHC card on SPI
[ 63.965503] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 64.089152] mmcblk0: unable to read partition table
[ 64.133576] mmc0: SPI card removed
[ 64.564323] mmc0: host does not support reading read-only switch, assuming write-enable
[ 64.585738] mmc0: new SDHC card on SPI
[ 64.714832] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 64.837367] mmcblk0: unable to read partition table
[ 64.879998] mmc0: SPI card removed
[ 65.314209] mmc0: host does not support reading read-only switch, assuming write-enable
[ 65.335599] mmc0: new SDHC card on SPI
[ 65.456642] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 65.697073] mmcblk0: unable to read partition table
[ 65.735558] mmc0: SPI card removed
[ 66.164124] mmc0: host does not support reading read-only switch, assuming write-enable
[ 66.185511] mmc0: new SDHC card on SPI
[ 66.308928] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 66.740148] mmc0: SPI card removed
[ 67.164196] mmc0: host does not support reading read-only switch, assuming write-enable
[ 67.186353] mmc0: new SDHC card on SPI
[ 67.308004] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 67.819395] mmc0: SPI card removed
[ 68.254249] mmc0: host does not support reading read-only switch, assuming write-enable
[ 68.275639] mmc0: new SDHC card on SPI
[ 68.398368] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 68.539845] mmcblk0: unable to read partition table
[ 68.571430] mmc0: SPI card removed
[ 69.004790] mmc0: error -110 whilst initialising SD card
[ 70.434793] mmc0: host does not support reading read-only switch, assuming write-enable
[ 70.456488] mmc0: new SDHC card on SPI
[ 70.583306] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 70.929770] mmc0: SPI card removed
[ 71.354258] mmc0: host does not support reading read-only switch, assuming write-enable
[ 71.375634] mmc0: new SDHC card on SPI
[ 71.497372] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 71.743554] mmcblk0: unable to read partition table
[ 71.787566] mmc0: SPI card removed
[ 72.204290] mmc0: host does not support reading read-only switch, assuming write-enable
[ 72.225640] mmc0: new SDHC card on SPI
[ 72.349043] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 72.583626] mmcblk0: unable to read partition table
[ 72.629305] mmc0: SPI card removed
[ 73.028014] mmc0: error -110 whilst initialising SD card
[ 74.405165] mmc0: error -110 whilst initialising SD card
[ 75.873227] mmc0: host does not support reading read-only switch, assuming write-enable
[ 75.895253] mmc0: new SDHC card on SPI
[ 76.021167] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 76.164703] mmcblk0: unable to read partition table
[ 76.207452] mmc0: SPI card removed
[ 76.655218] mmc0: host does not support reading read-only switch, assuming write-enable
[ 76.676972] mmc0: new SDHC card on SPI
[ 76.804649] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 77.053764] mmcblk0: unable to read partition table
[ 77.097659] mmc0: SPI card removed
[ 77.534306] mmc0: host does not support reading read-only switch, assuming write-enable
[ 77.555656] mmc0: new SDHC card on SPI
[ 77.687680] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 77.810231] mmcblk0: unable to read partition table
[ 77.841724] mmc0: SPI card removed
[ 78.283486] mmc0: host does not support reading read-only switch, assuming write-enable
[ 78.305510] mmc0: new SDHC card on SPI
[ 78.428253] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 78.550114] mmcblk0: unable to read partition table
[ 78.581596] mmc0: SPI card removed
[ 79.014140] mmc0: host does not support reading read-only switch, assuming write-enable
[ 79.035543] mmc0: new SDHC card on SPI
[ 79.158257] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 79.488641] mmc0: SPI card removed
[ 79.925035] mmc0: host does not support reading read-only switch, assuming write-enable
[ 79.946750] mmc0: new SDHC card on SPI
[ 80.071102] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 80.300824] mmc0: SPI card removed
[ 80.734145] mmc0: host does not support reading read-only switch, assuming write-enable
[ 80.755572] mmc0: new SDHC card on SPI
[ 80.881724] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 81.024103] mmcblk0: unable to read partition table
[ 81.068101] mmc0: SPI card removed
[ 81.494269] mmc0: host does not support reading read-only switch, assuming write-enable
[ 81.515675] mmc0: new SDHC card on SPI
[ 81.645441] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 81.873922] mmc0: SPI card removed
[ 82.313989] mmc0: host does not support reading read-only switch, assuming write-enable
[ 82.335366] mmc0: new SDHC card on SPI
[ 82.458310] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 82.534511] random: fast init done
[ 82.820238] mmc0: SPI card removed
[ 83.244226] mmc0: host does not support reading read-only switch, assuming write-enable
[ 83.265605] mmc0: new SDHC card on SPI
[ 83.388217] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 83.510480] mmcblk0: unable to read partition table
[ 83.544253] mmc0: SPI card removed
[ 83.954297] mmc0: error -110 whilst initialising SD card
[ 85.384144] mmc0: host does not support reading read-only switch, assuming write-enable
[ 85.405479] mmc0: new SDHC card on SPI
[ 85.532299] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 85.665554] mmcblk0: unable to read partition table
[ 85.707729] mmc0: SPI card removed
[ 86.124200] mmc0: host does not support reading read-only switch, assuming write-enable
[ 86.145558] mmc0: new SDHC card on SPI
[ 86.267568] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 86.608607] mmc0: SPI card removed
[ 87.044003] mmc0: host does not support reading read-only switch, assuming write-enable
[ 87.065375] mmc0: new SDHC card on SPI
[ 87.186679] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 87.307239] mmcblk0: unable to read partition table
[ 87.345535] mmc0: SPI card removed
[ 87.767817] mmc0: error -110 whilst initialising SD card
[ 89.234059] mmc0: host does not support reading read-only switch, assuming write-enable
[ 89.256210] mmc0: new SDHC card on SPI
[ 89.384602] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 89.529579] mmcblk0: unable to read partition table
[ 89.561438] mmc0: SPI card removed
[ 89.993891] mmc0: host does not support reading read-only switch, assuming write-enable
[ 90.015311] mmc0: new SDHC card on SPI
[ 90.137488] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 90.280351] mmcblk0: unable to read partition table
[ 90.324340] mmc0: SPI card removed
[ 90.725710] mmc0: error -110 whilst initialising SD card
[ 92.123973] mmc0: host does not support reading read-only switch, assuming write-enable
[ 92.145371] mmc0: new SDHC card on SPI
[ 92.271645] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 92.519373] mmc0: SPI card removed
[ 92.954092] mmc0: host does not support reading read-only switch, assuming write-enable
[ 92.975482] mmc0: new SDHC card on SPI
[ 93.097031] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 93.219660] mmcblk0: unable to read partition table
[ 93.251626] mmc0: SPI card removed
[ 93.693772] mmc0: host does not support reading read-only switch, assuming write-enable
[ 93.715833] mmc0: new SDHC card on SPI
[ 93.843519] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 93.966428] mmcblk0: unable to read partition table
[ 94.010282] mmc0: SPI card removed
[ 94.434254] mmc0: host does not support reading read-only switch, assuming write-enable
[ 94.455602] mmc0: new SDHC card on SPI
[ 94.580854] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 94.731709] mmcblk0: unable to read partition table
[ 94.776071] mmc0: SPI card removed
[ 95.194227] mmc0: host does not support reading read-only switch, assuming write-enable
[ 95.215586] mmc0: new SDHC card on SPI
[ 95.338705] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 95.576717] mmcblk0: unable to read partition table
[ 95.614420] mmc0: SPI card removed
[ 96.035048] mmc0: error -110 whilst initialising SD card
[ 97.458998] mmc0: error -110 whilst initialising SD card
[ 98.914086] mmc0: host does not support reading read-only switch, assuming write-enable
[ 98.935492] mmc0: new SDHC card on SPI
[ 99.061787] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 99.206374] mmcblk0: unable to read partition table
[ 99.250275] mmc0: SPI card removed
[ 99.694182] mmc0: host does not support reading read-only switch, assuming write-enable
[ 99.715587] mmc0: new SDHC card on SPI
[ 99.842839] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 99.987195] mmcblk0: unable to read partition table
[ 100.025518] mmc0: SPI card removed
[ 100.474243] mmc0: host does not support reading read-only switch, assuming write-enable
[ 100.495673] mmc0: new SDHC card on SPI
[ 100.622814] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 100.874343] mmc0: SPI card removed
[ 101.313499] mmc0: host does not support reading read-only switch, assuming write-enable
[ 101.335674] mmc0: new SDHC card on SPI
[ 101.457648] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 101.811404] mmc0: SPI card removed
[ 102.233957] mmc0: host does not support reading read-only switch, assuming write-enable
[ 102.255341] mmc0: new SDHC card on SPI
[ 102.377407] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 102.519784] mmcblk0: unable to read partition table
[ 102.551435] mmc0: SPI card removed
[ 103.014176] mmc0: host does not support reading read-only switch, assuming write-enable
[ 103.035598] mmc0: new SDHC card on SPI
[ 103.157237] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 103.393756] mmcblk0: unable to read partition table
[ 103.438050] mmc0: SPI card removed
[ 103.883981] mmc0: host does not support reading read-only switch, assuming write-enable
[ 103.905338] mmc0: new SDHC card on SPI
[ 104.031043] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 104.176121] mmcblk0: unable to read partition table
[ 104.217880] mmc0: SPI card removed
[ 104.634795] mmc0: host does not support reading read-only switch, assuming write-enable
[ 104.656533] mmc0: new SDHC card on SPI
[ 104.784396] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 105.034563] mmcblk0: unable to read partition table
[ 105.077518] mmc0: SPI card removed
[ 105.494340] mmc0: host does not support reading read-only switch, assuming write-enable
[ 105.515707] mmc0: new SDHC card on SPI
[ 105.645130] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 105.768036] mmcblk0: unable to read partition table
[ 105.804806] mmc0: SPI card removed
[ 106.239200] mmc0: error -110 whilst initialising SD card
[ 107.618052] mmc0: error -110 whilst initialising SD card
[ 109.073430] mmc0: host does not support reading read-only switch, assuming write-enable
[ 109.095574] mmc0: new SDHC card on SPI
[ 109.223683] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 109.345869] mmcblk0: unable to read partition table
[ 109.385555] mmc0: SPI card removed
[ 109.829127] mmc0: error -110 whilst initialising SD card
[ 111.244117] mmc0: host does not support reading read-only switch, assuming write-enable
[ 111.265448] mmc0: new SDHC card on SPI
[ 111.392125] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 111.635327] mmcblk0: unable to read partition table
[ 111.681759] mmc0: SPI card removed
[ 112.078952] mmc0: error -110 whilst initialising SD card
[ 113.474298] mmc0: host does not support reading read-only switch, assuming write-enable
[ 113.495633] mmc0: new SDHC card on SPI
[ 113.623184] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 113.748252] mmcblk0: unable to read partition table
[ 113.784905] mmc0: SPI card removed
[ 114.232091] mmc0: host does not support reading read-only switch, assuming write-enable
[ 114.255095] mmc0: new SDHC card on SPI
[ 114.377155] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 114.500122] mmcblk0: unable to read partition table
[ 114.531794] mmc0: SPI card removed
[ 114.948904] mmc0: error -110 whilst initialising SD card
[ 116.327736] mmc0: error -110 whilst initialising SD card
[ 117.699042] mmc0: error -110 whilst initialising SD card
[ 119.153265] mmc0: host does not support reading read-only switch, assuming write-enable
[ 119.175259] mmc0: new SDHC card on SPI
[ 119.300998] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 119.427078] mmcblk0: unable to read partition table
[ 119.470091] mmc0: SPI card removed
[ 119.888102] mmc0: error -110 whilst initialising SD card
[ 121.297952] mmc0: error -110 whilst initialising SD card
[ 122.738882] mmc0: error -110 whilst initialising SD card
[ 124.165100] mmc0: error -110 whilst initialising SD card
[ 125.604623] mmc0: error -110 whilst initialising SD card
[ 126.978912] mmc0: error -110 whilst initialising SD card
[ 128.359033] mmc0: error -110 whilst initialising SD card
[ 129.778862] mmc0: error -110 whilst initialising SD card
[ 131.205093] mmc0: error -110 whilst initialising SD card
[ 132.587925] mmc0: error -110 whilst initialising SD card
[ 134.019037] mmc0: error -110 whilst initialising SD card
[ 135.463963] mmc0: host does not support reading read-only switch, assuming write-enable
[ 135.485395] mmc0: new SDHC card on SPI
[ 135.611876] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 135.738005] mmcblk0: unable to read partition table
[ 135.781773] mmc0: SPI card removed
[ 136.204139] mmc0: host does not support reading read-only switch, assuming write-enable
[ 136.225544] mmc0: new SDHC card on SPI
[ 136.348018] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 136.470064] mmcblk0: unable to read partition table
[ 136.501604] mmc0: SPI card removed
[ 136.939086] mmc0: error -110 whilst initialising SD card
[ 138.328870] mmc0: error -110 whilst initialising SD card
[ 139.694710] mmc0: error -110 whilst initialising SD card
[ 141.154138] mmc0: host does not support reading read-only switch, assuming write-enable
[ 141.175552] mmc0: new SDHC card on SPI
[ 141.302148] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 141.426403] mmcblk0: unable to read partition table
[ 141.470253] mmc0: SPI card removed
[ 141.894267] mmc0: host does not support reading read-only switch, assuming write-enable
[ 141.915674] mmc0: new SDHC card on SPI
[ 142.036295] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 142.160301] mmcblk0: unable to read partition table
[ 142.194084] mmc0: SPI card removed
[ 142.609259] mmc0: error -110 whilst initialising SD card
[ 144.028916] mmc0: error -110 whilst initialising SD card
[ 145.459016] mmc0: error -110 whilst initialising SD card
[ 146.895327] mmc0: error -110 whilst initialising SD card
[ 148.354155] mmc0: host does not support reading read-only switch, assuming write-enable
[ 148.375502] mmc0: new SDHC card on SPI
[ 148.502005] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 148.633602] mmcblk0: unable to read partition table
[ 148.677394] mmc0: SPI card removed
[ 149.085282] mmc0: error -110 whilst initialising SD card
[ 150.508880] mmc0: error -110 whilst initialising SD card
[ 151.949096] mmc0: error -110 whilst initialising SD card
[ 153.378801] mmc0: error -110 whilst initialising SD card
[ 154.854290] mmc0: host does not support reading read-only switch, assuming write-enable
[ 154.875632] mmc0: new SDHC card on SPI
[ 155.005731] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 155.128782] mmcblk0: unable to read partition table
[ 155.160990] mmc0: SPI card removed
[ 155.584154] mmc0: host does not support reading read-only switch, assuming write-enable
[ 155.605552] mmc0: new SDHC card on SPI
[ 155.736637] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 155.860492] mmcblk0: unable to read partition table
[ 155.894799] mmc0: SPI card removed
[ 156.305111] mmc0: error -110 whilst initialising SD card
[ 157.708942] mmc0: error -110 whilst initialising SD card
[ 159.148999] mmc0: error -110 whilst initialising SD card
[ 160.594317] mmc0: host does not support reading read-only switch, assuming write-enable
[ 160.615726] mmc0: new SDHC card on SPI
[ 160.743554] mmcblk0: mmc0:0000 SC16G 14.8 GiB
[ 160.866937] mmcblk0: unable to read partition table
[ 160.908970] mmc0: SPI card removed
[ 161.338900] mmc0: error -110 whilst initialising SD card
[ 162.739163] mmc0: error -110 whilst initialising SD card
[ 164.167771] mmc0: error -110 whilst initialising SD card
[ 165.539026] mmc0: error -110 whilst initialising SD card
[ 166.978135] mmc0: error -110 whilst initialising SD card
[ 168.428790] mmc0: error -110 whilst initialising SD card
[ 169.845129] mmc0: error -110 whilst initialising SD card
[ 171.228973] mmc0: error -110 whilst initialising SD card
[ 172.658103] mmc0: error -110 whilst initialising SD card
[ 174.098876] mmc0: error -110 whilst initialising SD card
[ 175.548895] mmc0: error -110 whilst initialising SD card
[ 176.978865] mmc0: error -110 whilst initialising SD card
[ 178.408941] mmc0: error -110 whilst initialising SD card
[ 179.858926] mmc0: error -110 whilst initialising SD card
[ 181.285002] mmc0: error -110 whilst initialising SD card
[ 182.659167] mmc0: error -110 whilst initialising SD card
[ 184.099008] mmc0: error -110 whilst initialising SD card
[ 185.539057] mmc0: error -110 whilst initialising SD card
[ 186.988986] mmc0: error -110 whilst initialising SD card
[ 188.429067] mmc0: error -110 whilst initialising SD card
[ 189.859026] mmc0: error -110 whilst initialising SD card
[ 191.309030] mmc0: error -110 whilst initialising SD card
[ 192.748900] mmc0: error -110 whilst initialising SD card
[ 194.188797] mmc0: error -110 whilst initialising SD card
[ 195.618940] mmc0: error -110 whilst initialising SD card
[ 197.059125] mmc0: error -110 whilst initialising SD card
[ 198.489026] mmc0: error -110 whilst initialising SD card
[ 199.849054] mmc0: error -110 whilst initialising SD card
[ 201.227858] mmc0: error -110 whilst initialising SD card
[ 202.668135] mmc0: error -110 whilst initialising SD card
[ 204.095118] mmc0: error -110 whilst initialising SD card
[ 205.559124] mmc0: error -110 whilst initialising SD card
[ 206.978902] mmc0: error -110 whilst initialising SD card
[ 208.418957] mmc0: error -110 whilst initialising SD card
[ 209.788992] mmc0: error -110 whilst initialising SD card
[ 211.228948] mmc0: error -110 whilst initialising SD card
[ 212.669102] mmc0: error -110 whilst initialising SD card
[ 214.075127] mmc0: error -110 whilst initialising SD card
[ 215.458850] mmc0: error -110 whilst initialising SD card
[ 216.898847] mmc0: error -110 whilst initialising SD card
[ 218.339054] mmc0: error -110 whilst initialising SD card
[ 219.709021] mmc0: error -110 whilst initialising SD card
[ 221.137869] mmc0: error -110 whilst initialising SD card
[ 222.568983] mmc0: error -110 whilst initialising SD card
[ 223.949187] mmc0: error -110 whilst initialising SD card
[ 225.388914] mmc0: error -110 whilst initialising SD card
[ 226.818994] mmc0: error -110 whilst initialising SD card
[ 228.269057] mmc0: error -110 whilst initialising SD card
[ 229.708894] mmc0: error -110 whilst initialising SD card
[ 231.149050] mmc0: error -110 whilst initialising SD card
[ 232.579017] mmc0: error -110 whilst initialising SD card
[ 234.008819] mmc0: error -110 whilst initialising SD card
[ 235.459064] mmc0: error -110 whilst initialising SD card
[ 236.908854] mmc0: error -110 whilst initialising SD card
[ 238.338928] mmc0: error -110 whilst initialising SD card
[ 239.768977] mmc0: error -110 whilst initialising SD card
[ 241.148816] mmc0: error -110 whilst initialising SD card
[ 242.567780] mmc0: error -110 whilst initialising SD card
[ 243.928651] mmc0: error -110 whilst initialising SD card
[ 245.365184] mmc0: error -110 whilst initialising SD card
[ 246.738900] mmc0: error -110 whilst initialising SD card
[ 248.168926] mmc0: error -110 whilst initialising SD card
[ 249.548969] mmc0: error -110 whilst initialising SD card
[ 250.968999] mmc0: error -110 whilst initialising SD card
[ 252.338920] mmc0: error -110 whilst initialising SD card
[ 253.708954] mmc0: error -110 whilst initialising SD card
[ 255.147969] mmc0: error -110 whilst initialising SD card
[ 256.589032] mmc0: error -110 whilst initialising SD card
[ 258.017824] mmc0: error -110 whilst initialising SD card
[ 259.375090] mmc0: error -110 whilst initialising SD card
[ 260.808937] mmc0: error -110 whilst initialising SD card
[ 262.198626] mmc0: error -110 whilst initialising SD card
[ 263.618930] mmc0: error -110 whilst initialising SD card
[ 265.058869] mmc0: error -110 whilst initialising SD card
[ 266.485058] mmc0: error -110 whilst initialising SD card
[ 267.858946] mmc0: error -110 whilst initialising SD card
Hello World!
init SPI
status: 0x0000000000000025
status: 0x0000000000000025
SPI initialized!
initializing SD...
SD command cmd0 response : 01
SD command cmd55 response : 01
SD command cmd41 response : 01
SD command cmd55 response : 01
SD command cmd41 response : 01
SD command cmd55 response : 01
SD command cmd41 response : 01
SD command cmd55 response : 01
SD command cmd41 response : 01
SD command cmd55 response : 01
SD command cmd41 response : 01
SD command cmd55 response : 01
SD command cmd41 response : 01
SD command cmd55 response : 01
SD command cmd41 response : 01
SD command cmd55 response : 01
SD command cmd41 response : 01
SD command cmd55 response : 01
SD command cmd41 response : 01
SD command cmd55 response : 01
SD command cmd41 response : 01
SD command cmd55 response : 01
SD command cmd41 response : 01
SD command cmd55 response : 01
SD command cmd41 response : 01
SD command cmd55 response : 01
SD command cmd41 response : 00
sd initialized!
SD card failed!
sd copy return value: FFFFFFFFFFFFFFFE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment