树莓派3B通过arm-trust-firmware启动内核小系统

1、下载arm官方的arm-trust-firmware源码

git clone https://github.com/ARM-software/arm-trusted-firmware.git

2、编译生成rapi3b的atf镜像

CROSS_COMPILE=aarch64-linux-gnu- make PLAT=rpi3             \
PRELOADED_BL33_BASE=0x02000000                              \
RPI3_PRELOADED_DTB_BASE=0x01000000                          \
RPI3_DIRECT_LINUX_BOOT=1 DEBUG=1

3、然后把build/rpi3/debug/armstub8.bin下面这个文件拷贝到sd卡的boot分区根目录下面。


4、编译最新linux主线内核

make mrproper
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- defconfig -j8
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- Image.gz broadcom/bcm2837-rpi-3-b.dtb modules -j8

5、拷贝arch/arm64/boot/Image到sd卡boot分区根目录下面重名为kernel8.img
,拷贝arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b.dtb到sd卡分区boot根目录。


6、下载https://github.com/675816156/Raspi-3B/blob/master/boot_kernel/ramdisk.img到sd卡的根目录,下载https://github.com/raspberrypi/firmware/tree/master/boot下面的bootcode.bin、fixup.dat、start.elf到sd卡boot分区根目录下面


7、创建config.txt和cmdline.txt,内容如下:


cmdline.txt

rdinit=/linuxrc earlycon=uart8250,mmio32,0x3f215040

config.txt

arm_64bit
kernel_address=0x02000000
armstub=armstub8.bin

[pi3]
initramfs ramdisk.img followkernel

init_uart_baud=115200
init_uart_clock=48000000

bootcode_delay=3
boot_delay=3
boot_delay_ms=0

dtdebug=1
enable_uart=1

device_tree=bcm2837-rpi-3-b.dtb
device_tree_address=0x01000000

最后可以看到启动log

Raspberry Pi Bootcode

Found SD card, config.txt = 1, start.elf = 1, recovery.elf = 0, timeout = 0
Read File: config.txt, 300 (bytes)




Raspberry Pi Bootcode
Read File: config.txt, 300
Read File: start.elf, 2880356 (bytes)
Read File: fixup.dat, 6744 (bytes)
MESS:00:00:04.503375:0: brfs: File read: /mfs/sd/config.txt
MESS:00:00:04.507804:0: brfs: File read: 300 bytes
MESS:00:00:04.522549:0: HDMI:EDID error reading EDID block 0 attempt 0
MESS:00:00:04.528623:0: HDMI:EDID error reading EDID block 0 attempt 1
MESS:00:00:04.534868:0: HDMI:EDID error reading EDID block 0 attempt 2
MESS:00:00:04.541117:0: HDMI:EDID error reading EDID block 0 attempt 3
MESS:00:00:04.547367:0: HDMI:EDID error reading EDID block 0 attempt 4
MESS:00:00:04.553618:0: HDMI:EDID error reading EDID block 0 attempt 5
MESS:00:00:04.559868:0: HDMI:EDID error reading EDID block 0 attempt 6
MESS:00:00:04.566118:0: HDMI:EDID error reading EDID block 0 attempt 7
MESS:00:00:04.572368:0: HDMI:EDID error reading EDID block 0 attempt 8
MESS:00:00:04.578618:0: HDMI:EDID error reading EDID block 0 attempt 9
MESS:00:00:04.584631:0: HDMI:EDID giving up on reading EDID block 0
MESS:00:00:04.589921:0: HDMI:EDID error reading EDID block 0 attempt 0
MESS:00:00:04.597108:0: HDMI:EDID error reading EDID block 0 attempt 1
MESS:00:00:04.603358:0: HDMI:EDID error reading EDID block 0 attempt 2
MESS:00:00:04.609608:0: HDMI:EDID error reading EDID block 0 attempt 3
MESS:00:00:04.615858:0: HDMI:EDID error reading EDID block 0 attempt 4
MESS:00:00:04.622108:0: HDMI:EDID error reading EDID block 0 attempt 5
MESS:00:00:04.628358:0: HDMI:EDID error reading EDID block 0 attempt 6
MESS:00:00:04.634608:0: HDMI:EDID error reading EDID block 0 attempt 7
MESS:00:00:04.640858:0: HDMI:EDID error reading EDID block 0 attempt 8
MESS:00:00:04.647108:0: HDMI:EDID error reading EDID block 0 attempt 9
MESS:00:00:04.653121:0: HDMI:EDID giving up on reading EDID block 0
MESS:00:00:04.671945:0: brfs: File read: /mfs/sd/config.txt
MESS:00:00:07.676406:0: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined
MESS:00:00:07.877947:0: gpioman: gpioman_get_pin_num: pin DISPLAY_DSI_PORT not defined
MESS:00:00:07.885381:0: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined
MESS:00:00:07.891401:0: *** Restart logging
MESS:00:00:07.895289:0: brfs: File read: 300 bytes
MESS:00:00:07.900809:0: hdmi: HDMI:EDID error reading EDID block 0 attempt 0
MESS:00:00:07.907813:0: hdmi: HDMI:EDID error reading EDID block 0 attempt 1
MESS:00:00:07.914580:0: hdmi: HDMI:EDID error reading EDID block 0 attempt 2
MESS:00:00:07.921350:0: hdmi: HDMI:EDID error reading EDID block 0 attempt 3
MESS:00:00:07.928121:0: hdmi: HDMI:EDID error reading EDID block 0 attempt 4
MESS:00:00:07.934892:0: hdmi: HDMI:EDID error reading EDID block 0 attempt 5
MESS:00:00:07.941664:0: hdmi: HDMI:EDID error reading EDID block 0 attempt 6
MESS:00:00:07.948434:0: hdmi: HDMI:EDID error reading EDID block 0 attempt 7
MESS:00:00:07.955205:0: hdmi: HDMI:EDID error reading EDID block 0 attempt 8
MESS:00:00:07.961976:0: hdmi: HDMI:EDID error reading EDID block 0 attempt 9
MESS:00:00:07.968510:0: hdmi: HDMI:EDID giving up on reading EDID block 0
MESS:00:00:07.974319:0: hdmi: HDMI:EDID error reading EDID block 0 attempt 0
MESS:00:00:07.982028:0: hdmi: HDMI:EDID error reading EDID block 0 attempt 1
MESS:00:00:07.988798:0: hdmi: HDMI:EDID error reading EDID block 0 attempt 2
MESS:00:00:07.995569:0: hdmi: HDMI:EDID error reading EDID block 0 attempt 3
MESS:00:00:08.002341:0: hdmi: HDMI:EDID error reading EDID block 0 attempt 4
MESS:00:00:08.009111:0: hdmi: HDMI:EDID error reading EDID block 0 attempt 5
MESS:00:00:08.015882:0: hdmi: HDMI:EDID error reading EDID block 0 attempt 6
MESS:00:00:08.022654:0: hdmi: HDMI:EDID error reading EDID block 0 attempt 7
MESS:00:00:08.029423:0: hdmi: HDMI:EDID error reading EDID block 0 attempt 8
MESS:00:00:08.036194:0: hdmi: HDMI:EDID error reading EDID block 0 attempt 9
MESS:00:00:08.042729:0: hdmi: HDMI:EDID giving up on reading EDID block 0
MESS:00:00:08.048512:0: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
MESS:00:00:08.057008:0: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
MESS:00:00:08.529755:0: brfs: File read: /mfs/sd/ramdisk.img
MESS:00:00:08.533723:0: Loading 'ramdisk.img' to 0x0 size 0x69a79e
MESS:00:00:09.337570:0: initramfs loaded to 0x2e965000 (size 0x69a79e)
MESS:00:00:09.346741:0: Trying Device Tree file 'bcm2837-rpi-3-b.dtb'
MESS:00:00:09.351490:0: brfs: File read: 6924190 bytes
MESS:00:00:09.361470:0: brfs: File read: /mfs/sd/bcm2837-rpi-3-b.dtb
MESS:00:00:09.366128:0: Loading 'bcm2837-rpi-3-b.dtb' to 0x1000000 size 0x3726
MESS:00:00:09.388154:0: dtdebug: delete_node(/__local_fixups__)
MESS:00:00:09.446378:0: dtparam: uart0_clkrate=48000000
MESS:00:00:09.454014:0: dtdebug: /__overrides__ node not found
MESS:00:00:09.458140:0: Unknown dtparam 'uart0_clkrate' - ignored
MESS:00:00:09.463965:0: brfs: File read: 14118 bytes
MESS:00:00:09.469027:0: brfs: File read: /mfs/sd/config.txt
MESS:00:00:09.478545:0: dterror: No symbols found
MESS:00:00:09.481552:0: brfs: File read: 300 bytes
MESS:00:00:09.488543:0: brfs: File read: /mfs/sd/cmdline.txt
MESS:00:00:09.492518:0: Read command line from file 'cmdline.txt':
MESS:00:00:09.498401:0: 'rdinit=/linuxrc earlycon=uart8250,mmio32,0x3f215040'
MESS:00:00:09.513437:0: dterror: No symbols found
MESS:00:00:09.520728:0: dterror: No symbols found
MESS:00:00:09.528014:0: dterror: No symbols found
MESS:00:00:11.195313:0: dterror: No symbols found
MESS:00:00:11.278774:0: dterror: No symbols found
MESS:00:00:11.281782:0: dtparam: cam0-pwdn=5
MESS:00:00:11.290021:0: dtdebug: /__overrides__ node not found
MESS:00:00:11.294150:0: Unknown dtparam 'cam0-pwdn' - ignored
MESS:00:00:11.304013:0: dterror: No symbols found
MESS:00:00:11.307029:0: dtparam: cam0-led=6
MESS:00:00:11.315157:0: dtdebug: /__overrides__ node not found
MESS:00:00:11.319297:0: Unknown dtparam 'cam0-led' - ignored
MESS:00:00:11.324673:0: gpioman: gpioman_get_pin_num: pin EMMC_ENABLE not defined
MESS:00:00:11.331905:0: dtparam: arm_freq=1200000000
MESS:00:00:11.340824:0: dtdebug: /__overrides__ node not found
MESS:00:00:11.344951:0: Unknown dtparam 'arm_freq' - ignored
MESS:00:00:11.350366:0: dtparam: core_freq=400000000
MESS:00:00:11.359265:0: dtdebug: /__overrides__ node not found
MESS:00:00:11.363408:0: Unknown dtparam 'core_freq' - ignored
MESS:00:00:11.377559:0: dtdebug: delete_node(/hat)
MESS:00:00:11.386676:0: brfs: File read: 51 bytes
MESS:00:00:11.409235:0: brfs: File read: /mfs/sd/armstub8.bin
MESS:00:00:11.413287:0: Loading 'armstub8.bin' to 0x0 size 0x312e8
MESS:00:00:11.419211:0: brfs: File read: 201448 bytes
MESS:00:00:12.983451:0: brfs: File read: /mfs/sd/kernel8.img
MESS:00:00:12.987417:0: Loading 'kernel8.img' to 0x2000000 size 0x17b0200
MESS:00:00:12.993935:0: Device tree loaded to 0x1000000 (size 0x3acf)
MESS:00:00:13.001314:0: uart: Set PL011 baud rate to 103448.300000 Hz
MESS:00:00:13.007795:0: uart: Baud rate change done...
MESS:00:00:13.011227:0: uart: Baud rateNOTICE:  Booting Trusted Firmware
NOTICE:  BL1: v2.2(debug):v2.2-76-g90d5f8bd
NOTICE:  BL1: Built : 06:46:55, Dec  1 2019
INFO:    BL1: RAM 0x100ee000 - 0x100f7000
INFO:    BL1: cortex_a53: CPU workaround for 843419 was applied
INFO:    BL1: cortex_a53: CPU workaround for 855873 was applied
ERROR:   rpi3: Unknown board revision 0x02a02082
NOTICE:  rpi3: Detected: Unknown (Unknown) [0x02a02082]
INFO:    BL1: Loading BL2
INFO:    Loading image id=1 at address 0x100b4000
INFO:    Image id=1 loaded: 0x100b4000 - 0x100bc1e8
NOTICE:  BL1: Booting BL2
INFO:    Entry point address = 0x100b4000
INFO:    SPSR = 0x3c5
NOTICE:  BL2: v2.2(debug):v2.2-76-g90d5f8bd
NOTICE:  BL2: Built : 06:46:57, Dec  1 2019
INFO:    BL2: Doing platform setup
INFO:    BL2: Loading image id 3
INFO:    Loading image id=3 at address 0x100e0000
INFO:    Image id=3 loaded: 0x100e0000 - 0x100e9078
INFO:    BL2: Skip loading image id 5
NOTICE:  BL1: Booting BL31
INFO:    Entry point address = 0x100e0000
INFO:    SPSR = 0x3cd
NOTICE:  BL31: v2.2(debug):v2.2-76-g90d5f8bd
NOTICE:  BL31: Built : 06:47:00, Dec  1 2019
INFO:    rpi3: Checking DTB...
INFO:    rpi3: Reserved 0x10000000 - 0x10100000 in DTB
INFO:    BL31: Initializing runtime services
INFO:    BL31: cortex_a53: CPU workaround for 843419 was applied
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x2000000
INFO:    SPSR = 0x3c9
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.3.0-rc7-00443-g950b07c14e8c (jun@ubuntu) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 SMP PREEMPT Sun Sep 8 08:15:09 PDT 2019
[    0.000000] Machine model: Raspberry Pi 3 Model B Rev 1.2
[    0.000000] earlycon: uart8250 at MMIO32 0x000000003f215040 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 32 MiB at 0x0000000039400000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x000000003b3fffff]
[    0.000000] NUMA: NODE_DATA [mem 0x39210840-0x39211fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000000000000-0x000000003b3fffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000003b3fffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000003b3fffff]
[    0.000000] percpu: Embedded 23 pages/cpu s56728 r8192 d29288 u94208
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: kernel page table isolation forced ON by KASLR
[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 238896
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line:  dma.dmachans=0x7f35 bcm2709.boardrev=0x2a02082 bcm2709.serial=0xf2c396f2 bcm2709.uart_clock=48000000 smsc95xx.macaddr=B8:27:EB:C3:96:F2 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  rdinit=/linuxrc earlycon=uart8250,mmio32,0x3f215040
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 883180K/970752K available (11388K kernel code, 1792K rwdata, 6024K rodata, 4992K init, 447K bss, 54804K reserved, 32768K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] random: get_random_bytes called from start_kernel+0x300/0x494 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000007] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.008350] Console: colour dummy device 80x25
[    0.012867] printk: console [tty0] enabled
[    0.017038] printk: bootconsole [uart8250] disabled
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.3.0-rc7-00443-g950b07c14e8c (jun@ubuntu) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #1 SMP PREEMPT Sun Sep 8 08:15:09 PDT 2019
[    0.000000] Machine model: Raspberry Pi 3 Model B Rev 1.2
[    0.000000] earlycon: uart8250 at MMIO32 0x000000003f215040 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 32 MiB at 0x0000000039400000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000000000000-0x000000003b3fffff]
[    0.000000] NUMA: NODE_DATA [mem 0x39210840-0x39211fff]
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000000000000-0x000000003b3fffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000003b3fffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000003b3fffff]
[    0.000000] percpu: Embedded 23 pages/cpu s56728 r8192 d29288 u94208
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: kernel page table isolation forced ON by KASLR
[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 238896
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line:  dma.dmachans=0x7f35 bcm2709.boardrev=0x2a02082 bcm2709.serial=0xf2c396f2 bcm2709.uart_clock=48000000 smsc95xx.macaddr=B8:27:EB:C3:96:F2 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  rdinit=/linuxrc earlycon=uart8250,mmio32,0x3f215040
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 883180K/970752K available (11388K kernel code, 1792K rwdata, 6024K rodata, 4992K init, 447K bss, 54804K reserved, 32768K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] random: get_random_bytes called from start_kernel+0x300/0x494 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000007] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.008350] Console: colour dummy device 80x25
[    0.012867] printk: console [tty0] enabled
[    0.017038] printk: bootconsole [uart8250] disabled
[    0.022112] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=76800)
[    0.022148] pid_max: default: 32768 minimum: 301
[    0.022276] LSM: Security Framework initializing
[    0.022388] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.022430] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.046128] ASID allocator initialised with 32768 entries
[    0.054119] rcu: Hierarchical SRCU implementation.
[    0.063784] EFI services will not be available.
[    0.070166] smp: Bringing up secondary CPUs ...
[    1.127556] CPU1: failed to come online
[    1.127575] CPU1: failed in unknown state : 0x0
[    2.184934] CPU2: failed to come online
[    2.184953] CPU2: failed in unknown state : 0x0
[    3.242316] CPU3: failed to come online
[    3.242334] CPU3: failed in unknown state : 0x0
[    3.242414] smp: Brought up 1 node, 1 CPU
[    3.242431] SMP: Total of 1 processors activated.
[    3.242455] CPU features: detected: 32-bit EL0 Support
[    3.242479] CPU features: detected: CRC32 instructions
[    3.243672] CPU: All CPU(s) started at EL2
[    3.243707] alternatives: patching kernel code
[    3.245437] devtmpfs: initialized
[    3.255194] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    3.255248] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    3.257100] pinctrl core: initialized pinctrl subsystem
[    3.258871] DMI not present or invalid.
[    3.259449] NET: Registered protocol family 16
[    3.261776] audit: initializing netlink subsys (disabled)
[    3.263385] cpuidle: using governor menu
[    3.263941] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    3.265401] DMA: preallocated 256 KiB pool for atomic allocations
[    3.267037] Serial: AMBA PL011 UART driver
[    3.270895] audit: type=2000 audit(3.248:1): state=initialized audit_enabled=0 res=1
[    3.295361] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    3.295403] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    3.295429] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    3.295454] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    3.303032] cryptd: max_cpu_qlen set to 1000
[    3.320043] ACPI: Interpreter disabled.
[    3.323341] vgaarb: loaded
[    3.323800] SCSI subsystem initialized
[    3.327497] usbcore: registered new interface driver usbfs
[    3.327585] usbcore: registered new interface driver hub
[    3.327662] usbcore: registered new device driver usb
[    3.327910] usb_phy_generic phy: phy supply vcc not found, using dummy regulator
[    3.328900] pps_core: LinuxPPS API ver. 1 registered
[    3.328922] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[    3.328967] PTP clock support registered
[    3.329146] EDAC MC: Ver: 3.0.0
[    3.335255] FPGA manager framework
[    3.335393] Advanced Linux Sound Architecture Driver Initialized.
[    3.336581] clocksource: Switched to clocksource arch_sys_counter
[    3.336820] VFS: Disk quotas dquot_6.6.0
[    3.336912] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    3.337201] pnp: PnP ACPI: disabled
[    3.345778] thermal_sys: Registered thermal governor 'step_wise'
[    3.345784] thermal_sys: Registered thermal governor 'power_allocator'
[    3.346215] NET: Registered protocol family 2
[    3.346817] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[    3.346880] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    3.347014] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    3.347228] TCP: Hash tables configured (established 8192 bind 8192)
[    3.347464] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    3.347527] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    3.347744] NET: Registered protocol family 1
[    3.360448] RPC: Registered named UNIX socket transport module.
[    3.360472] RPC: Registered udp transport module.
[    3.360491] RPC: Registered tcp transport module.
[    3.360509] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    3.360538] PCI: CLS 0 bytes, default 64
[    3.360806] Unpacking initramfs...
[    3.891663] Freeing initrd memory: 6760K
[    3.892745] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    3.892880] kvm [1]: IPA Size Limit: 40bits
[    3.893987] kvm [1]: Hyp mode initialized successfully
[    3.917691] Initialise system trusted keyrings
[    3.917975] workingset: timestamp_bits=44 max_order=18 bucket_order=0
[    3.928747] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    3.933930] NFS: Registering the id_resolver key type
[    3.933978] Key type id_resolver registered
[    3.933997] Key type id_legacy registered
[    3.934024] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    3.934260] 9p: Installing v9fs 9p2000 file system support
[    3.963356] Key type asymmetric registered
[    3.963392] Asymmetric key parser 'x509' registered
[    3.963486] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    3.963515] io scheduler mq-deadline registered
[    3.963534] io scheduler kyber registered
[    3.982061] EINJ: ACPI disabled.
[    3.999648] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    4.002199] 3f215040.serial: ttyS1 at MMIO 0x0 (irq = 61, base_baud = 31250000) is a 16550
[    4.801636] printk: console [ttyS1] enabled
[    4.807474] SuperH (H)SCI(F) driver initialized
[    4.812876] msm_serial: driver initialized
[    4.818353] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    4.835222] loop: module loaded
[    4.839801] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[    4.853164] libphy: Fixed MDIO Bus: probed
[    4.857810] tun: Universal TUN/TAP device driver, 1.6
[    4.864094] thunder_xcv, ver 1.0
[    4.867484] thunder_bgx, ver 1.0
[    4.870854] nicpf, ver 1.0
[    4.874461] hclge is initializing
[    4.877849] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[    4.885206] hns3: Copyright (c) 2017 Huawei Corporation.
[    4.890695] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    4.896639] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    4.902722] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.6.0-k
[    4.909812] igb: Copyright (c) 2007-2014 Intel Corporation.
[    4.915539] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[    4.923515] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    4.930005] sky2: driver version 1.30
[    4.934681] VFIO - User Level meta-driver version: 0.3
[    4.946222] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.952911] ehci-pci: EHCI PCI platform driver
[    4.957499] ehci-platform: EHCI generic platform driver
[    4.962995] ehci-orion: EHCI orion driver
[    4.967217] ehci-exynos: EHCI EXYNOS driver
[    4.971597] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.977915] ohci-pci: OHCI PCI platform driver
[    4.982494] ohci-platform: OHCI generic platform driver
[    4.987967] ohci-exynos: OHCI EXYNOS driver
[    4.992933] usbcore: registered new interface driver usb-storage
[    5.002825] i2c /dev entries driver
[    5.012206] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[    5.019984] sdhci: Secure Digital Host Controller Interface driver
[    5.026287] sdhci: Copyright(c) Pierre Ossman
[    5.031296] Synopsys Designware Multimedia Card Interface Driver
[    5.038956] sdhost-bcm2835 3f202000.mmc: unable to initialise DMA channel. Falling back to PIO
[    5.126017] sdhost-bcm2835 3f202000.mmc: loaded - DMA disabled
[    5.132110] sdhci-pltfm: SDHCI platform and OF driver helper
[    5.140395] ledtrig-cpu: registered to indicate activity on CPUs
[    5.148323] usbcore: registered new interface driver usbhid
[    5.154013] usbhid: USB HID core driver
[    5.158487] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    5.168736] NET: Registered protocol family 17
[    5.173545] 9pnet: Installing 9P2000 support
[    5.177993] Key type dns_resolver registered
[    5.183349] registered taskstats version 1
[    5.187583] Loading compiled-in X.509 certificates
[    5.206292] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 66, base_baud = 0) is a PL011 rev2
[    5.215597] serial serial0: tty port ttyAMA0 registered
[    5.233306] raspberrypi-firmware soc:firmware: Attached to firmware from 2019-11-19 16:43
[    5.263291] mmc0: host does not support reading read-only switch, assuming write-enable
[    5.274493] dwc2 3f980000.usb: 3f980000.usb supply vusb_d not found, using dummy regulator
[    5.282989] mmc0: new high speed SDHC card at address aaaa
[    5.288718] dwc2 3f980000.usb: 3f980000.usb supply vusb_a not found, using dummy regulator
[    5.302855] mmcblk0: mmc0:aaaa SL08G 7.40 GiB
[    5.313090]  mmcblk0: p1 p2
[    5.348467] dwc2 3f980000.usb: DWC OTG Controller
[    5.353316] dwc2 3f980000.usb: new USB bus registered, assigned bus number 1
[    5.360539] dwc2 3f980000.usb: irq 41, io mem 0x3f980000
[    5.366741] hub 1-0:1.0: USB hub found
[    5.370621] hub 1-0:1.0: 1 port detected
[    5.379775] sdhci-iproc 3f300000.sdhci: allocated mmc-pwrseq
[    5.421692] mmc1: SDHCI controller on 3f300000.sdhci [3f300000.sdhci] using PIO
[    5.434492] hctosys: unable to open rtc device (rtc0)
[    5.440170] ALSA device list:
[    5.443262]   No soundcards found.
[    5.454568] Freeing unused kernel memory: 4992K
[    5.459311] Run /linuxrc as init process
/etc/init.d/rcS: line 11: can't create /proc/sys/kernel/hotplug: nonexistent directory
[root@chenjun]#[    5.768611] usb 1-1: new high-speed USB device number 2 using dwc2
[    5.981431] hub 1-1:1.0: USB hub found
[    5.985325] hub 1-1:1.0: 5 ports detected
[    6.206477] random: fast init done
[    6.276594] usb 1-1.1: new high-speed USB device number 3 using dwc2
[    7.852018] random: crng init done

[root@chenjun]#
[root@chenjun]#
[root@chenjun]#ls
bin      etc      lib      mnt      root     sys      usr
dev      init     linuxrc  proc     sbin     tmp      var
[root@chenjun]#

你可能感兴趣的:(树莓派)