Beaglebone Black 最小Linux从零系统编译
最近再研究beaglebone black,下面记录了从uboot,kernel,busybox编译过程。
要板子上跑linux系统起来,必须需要以下3份源码uboot,kernel,busybox.
Uboot
uboot源码下载地址
1.切换到 v2021.04-bbb.io-am335x-am57xx 分支
2.输入以下指令,把bbb配置文件导入到 .config
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am335x_evm_defconfig
3.编译,得到uboot.bin文件,该文件是最终uboot编译出来文件
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j8
Kernel
1.切换到4.14分支
2.拷贝bbb配置文件到.config
cp arch/arm/configs/bb.org_defconfig .config
3.输入以下指令,进入menuconfig 配置界面,
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig
1.
-
Device Drivers->Block device->选择RAM block device support (即选择Y,用于支持ramfs)
-
File systems->选择Network File Systems (即选择Y)
注意,内核对ramfs大小有限制,默认为16M,自行修改 Default RAM disk size大小。
2.编译内核,在arch/arm/boot/dts
找到设备树am335x-boneblack.dtb
,在arch/arm/boot
找到zImage
内核映像。
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage dtbs -j8
busybox编译
1.我是下载目前最新BusyBox 1.33.1.版本,源码下载后,输入以下命令
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig
.在Build Options
中 选择Build static binary
以静态的方式编译, 将Cross compiler prefix
设置为arm-linux-gnueabihf-
2.输入以下命令进行编译
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j8
3.编译成功后输入以下指令,会把编译结果放到 _install文件夹中,安装完成后,在指定的安装目录下可以看到bin、sbin、usr。
make install
4.然后在_install目录下,配置文件系统,在安装根目录下创建etc目录,在etc下创建以下3个文件:
-
mkdir etc
-
cd etc
-
vim inittab
-
vim rc
-
vim motd
文件具体内容如下:
inittab:
-
# /etc/inittab
-
::sysinit:/etc/init.d/rcS
-
::askfirst:-/bin/sh
-
::once:/usr/sbin/telnetd -l /bin/login
-
::ctrlaltdel:/sbin/reboot
-
::shutdown:/bin/umount -a -r
rc:(此文件要求可执行属性,使用chmod x rc
修改属性)
-
-
hostname BeagleBone
-
mount -t proc proc /proc
-
/bin/cat /etc/motd
可以看到这个脚本文件执行的命令有两条:
-
将hostname设置为BeagleBone
-
挂载proc伪文件系统
motd:
-
Welcome to
-
===============================
-
ARM-LINUX WORLD
-
BB -- BLACK
-
===============================
该文件用于终端启动打印内容,这里可以任意修改,这里给安利一个字符图标网址 字符图标网址
在etc下创建init.d
目录,并将/etc/rc
向etc/init.d/rcS
做符号链接,这是inittab指定的启动脚本
-
$ mkdir init.d
-
$ cd init.d
-
$ ln -s ../rc rcS
创建dev,proc,sys空目录
-
mkdir dev
-
mkdir proc
-
mkdir sys
创建lib目录,把交叉编译工具链lib/ld-2.31.so,libc-2.31.so,libm-2.31.so三个拷贝到_install/lib目录下.
注意,我的交叉编译工具链版本是9.3,这三个文件每个版本名字不一样,读者需要自己区分。别盲目粘贴复制我的命令。
-
$ mkdir lib
-
$ cd /usr/arm-linux-gnueabihf/lib
-
$cp ld-2.31.so ~/BusyBox/system/lib
-
$cp libc-2.31.so ~/BusyBox/system/lib
-
$cp libm-2.31.so ~/BusyBox/system/lib
做相应的符号链接:
-
$ ln -s ld -2.31.so ld-linux-armhf.so.3
-
$ ln -s libc -2.31.so libc.so.6
-
$ ln -s libm -2.31.so libm.so.6
好了,到此为止,我们配置完busybox文件夹,这是基本rootfs,来张全家福。
RAMDISK文件映像制作
1.先创建一个空的、Ext2FS的文件系统映像,作为RAM Disk
$ dd if=/dev/zero of=ramdisk_img bs=1k count=8192
这个最大容量约为8MB。对其格式化成Ext2FS文件系统
mke2fs ramdisk_img
这样得到的ramdisk_img可以像普通的文件系统一样进行挂载和卸载,挂载之后可以进行文件复制等操作
sudo mount -o loop ramdisk_img /home/yates/beagleboard/busybox_file/nfs
注意,以上命令具体挂载路径要自己配置真正电脑路径,伸手党要注意。
2.在rootfs /dev目录下创建设备文件
-
$ cd dev
-
$ mknod console c 5 1
-
$ mknod null c 1 3
-
$ mknod zero c 1 5
以上对于RAM Disk内容的处理已经完成。接下来只需要压缩, 得到ramdisk_img.gz文件。
-
$ umount /home/yates/beagleboard/busybox_file/nfs
-
$ gzip ramdisk_img
到此为止,我们需要文件都准备好了,uboot.img,zImage,am335x-boneblack.dtb,ramdisk_img.gz,MLO把这四个文件准备好放在tftp server文件夹。
关于tftp服务器配置,请参考以下教程
系统烧录
我们准备好以上文件,下面我们要把上面4个文件烧录到板子上面测试。
1.把uboot.img,zImage,am335x-boneblack.dtb,ramdisk_img.gz,MLO放到tftp文件夹下。
2.sd卡格式化
2.1 首先把sd卡插入电脑,查看sd卡盘符,我的电脑插入sd卡盘符是/dev/sdb
2.2输入以下命令,即可打开软件配置
sudo fdisk /dev/sdb
-
yates@yates-virtual-machine:/usr/arm-linux-gnueabihf/lib$ sudo fdisk /dev/sdb
-
-
Welcome to fdisk (util-linux 2.34).
-
Changes will remain in memory only, until you decide to write them.
-
Be careful before using the write command.
-
-
-
Command (m for help): d
-
Selected partition 1
-
Partition 1 has been deleted.
-
-
Command (m for help): p
-
Disk /dev/sdb: 14.66 GiB, 15720251392 bytes, 30703616 sectors
-
Disk model: Mass-Storage
-
Units: sectors of 1 * 512 = 512 bytes
-
Sector size (logical/physical): 512 bytes / 512 bytes
-
I/O size (minimum/optimal): 512 bytes / 512 bytes
-
Disklabel type: dos
-
Disk identifier: 0x3244345d
-
-
Command (m for help): n
-
Partition type
-
p primary (0 primary, 0 extended, 4 free)
-
e extended (container for logical partitions)
-
Select (default p): p
-
Partition number (1-4, default 1): 800000
-
Value out of range.
-
Partition number (1-4, default 1):
-
First sector (2048-30703615, default 2048):
-
Last sector, /-sectors or /-size{K,M,G,T,P} (2048-30703615, default 30703615): 800000
-
-
Created a new partition 1 of type 'Linux' and of size 389.6 MiB.
-
-
Command (m for help): t
-
Selected partition 1
-
Hex code (type L to list all codes): c
-
Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.
-
-
Command (m for help): a
-
Selected partition 1
-
The bootable flag on partition 1 is enabled now.
-
-
Command (m for help): p
-
Disk /dev/sdb: 14.66 GiB, 15720251392 bytes, 30703616 sectors
-
Disk model: Mass-Storage
-
Units: sectors of 1 * 512 = 512 bytes
-
Sector size (logical/physical): 512 bytes / 512 bytes
-
I/O size (minimum/optimal): 512 bytes / 512 bytes
-
Disklabel type: dos
-
Disk identifier: 0x3244345d
-
-
Device Boot Start End Sectors Size Id Type
-
/dev/sdb1 * 2048 800000 797953 389.6M c W95 FAT32 (LBA)
-
-
Command (m for help): n
-
Partition type
-
p primary (1 primary, 0 extended, 3 free)
-
e extended (container for logical partitions)
-
Select (default p): p
-
Partition number (2-4, default 2):
-
First sector (800001-30703615, default 800768):
-
Last sector, /-sectors or /-size{K,M,G,T,P} (800768-30703615, default 30703615):
-
-
Created a new partition 2 of type 'Linux' and of size 14.3 GiB.
-
-
Command (m for help): p
-
Disk /dev/sdb: 14.66 GiB, 15720251392 bytes, 30703616 sectors
-
Disk model: Mass-Storage
-
Units: sectors of 1 * 512 = 512 bytes
-
Sector size (logical/physical): 512 bytes / 512 bytes
-
I/O size (minimum/optimal): 512 bytes / 512 bytes
-
Disklabel type: dos
-
Disk identifier: 0x3244345d
-
-
Device Boot Start End Sectors Size Id Type
-
/dev/sdb1 * 2048 800000 797953 389.6M c W95 FAT32 (LBA)
-
/dev/sdb2 800768 30703615 29902848 14.3G 83 Linux
-
-
Command (m for help): w
-
The partition table has been altered.
-
Failed to remove partition 1 from system: Device or resource busy
-
Failed to add partition 1 to system: Device or resource busy
-
Failed to add partition 2 to system: Device or resource busy
-
-
The kernel still uses the old partitions. The new table will be used at the next reboot.
-
Syncing disks.
-
-
yates@yates-virtual-machine:/usr/arm-linux-gnueabihf/lib$ sudo fdisk /dev/sdb
-
-
Welcome to fdisk (util-linux 2.34).
-
Changes will remain in memory only, until you decide to write them.
-
Be careful before using the write command.
-
注意以下命令
d:是删除分区
n:是创建逻辑分区
t:是创建磁盘格式,c是W95 FAT32 (LBA)格式
p:打印磁盘信息
a:设置默认启动
w:是写入磁盘
在这里我们创建两个分区,一个是FAT32格式,另外一个是ext2
3.把u-boot.img,MLO文件放到sd卡,另外创建一个uEnv.txt文本,里面填入以下信息
-
console=ttyO0,115200n8
-
ipaddr=192.168.0.58
-
serverip=192.168.0.96
-
rootpath=/exports/rootfs
-
netargs=setenv bootargs console=${console} ${optargs} root=/dev/nfs nfsroot=${serverip}:${rootpath},${nfsopts} rw ip=${ipaddr}:${serverip}:192.168.23.1:255.255.255.0:beaglebone:eth0:none:192.168.23.1
-
netboot=echo Booting from network ...; tftp ${loadaddr} ${bootfile}; tftp ${fdtaddr} ${fdtfile}; run netargs; bootz ${loadaddr} - ${fdtaddr}
-
uenvcmd=run netboot
4.把sd卡插入到板子上,插上网线,上电按住boot键,同时用空格键打断uboot倒数
5.输入以下信息配置网口ip核tftp server ip
-
setenv ipaddr 192.168.0.111
-
setenv serverip 192.168.0.96
-
setenv netmask 255.255.255.0
6.输入以下信息读取zImage,ramdisk_img.gz,am335x-boneblack.dtb
-
tftp 0x82000000 zImage
-
tftp 0x88080000 ramdisk_img.gz
-
tftp 0x88000000 am335x-boneblack.dtb
注意:am335x外设内存起始地址为0x88000000。
第一条命令用于tftp读取zImage,
第二条信息用于读取文件系统
第三条命令用于读取设备树
7.输入以下信息用于引导系统起来
-
setenv ramdisk root=/dev/ram rw initrd=0x88080000
-
setenv bootargs console=ttyO0,115200 $ramdisk
-
bootz 0x82000000 0x88080000:0x900000 0x88000000
注意,第三条命令0x900000是代表文件系统大小
最后我们看下命令行引导过程,可以看到系统成功运行起来,完美撒花。当然目前fs只是运行在ram上面,修改文件无法存储保存在sd卡里面。后面我会出教程如何把rootfs运行在sd卡上,敬请期待。
-
-
U-Boot 2019.04-00002-g07d5700e21 (Mar 06 2020 - 11:24:55 -0600), Build: jenkins-github_Bootloader-Builder-137
-
-
CPU : AM335X-GP rev 2.1
-
I2C: ready
-
DRAM: 512 MiB
-
No match for driver 'omap_hsmmc'
-
No match for driver 'omap_hsmmc'
-
Some drivers were not found
-
Reset Source: Global external warm reset has occurred.
-
Reset Source: Power-on reset has occurred.
-
RTC 32KCLK Source: External.
-
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
-
Loading Environment from EXT4...
-
** Unable to use mmc 0:1 for loading the env **
-
Board: BeagleBone Black
-
<ethaddr> not set. Validating first E-fuse MAC
-
BeagleBone Black:
-
BeagleBone: cape eeprom: i2c_probe: 0x54:
-
BeagleBone: cape eeprom: i2c_probe: 0x55:
-
BeagleBone: cape eeprom: i2c_probe: 0x56:
-
BeagleBone: cape eeprom: i2c_probe: 0x57:
-
Net: eth0: MII MODE
-
cpsw, usb_ether
-
Press SPACE to abort autoboot in 0 seconds
-
=> setenv ipaddr 192.168.0.111
-
=> setenv serverip 192.168.0.96
-
=> setenv netmask 255.255.255.0
-
=> tftp 0x82000000 zImage
-
link up on port 0, speed 100, full duplex
-
Using cpsw device
-
TFTP from server 192.168.0.96; our IP address is 192.168.0.111
-
Filename 'zImage'.
-
Load address: 0x82000000
-
Loading: #################################################################
-
#################################################################
-
#################################################################
-
#################################################################
-
#################################################################
-
#################################################################
-
#################################################################
-
#################################################################
-
#################################################################
-
#################################################################
-
#################
-
2.6 MiB/s
-
done
-
Bytes transferred = 9781760 (954200 hex)
-
=> tftp 0x88080000 ramdisk_img.gz
-
link up on port 0, speed 100, full duplex
-
Using cpsw device
-
TFTP from server 192.168.0.96; our IP address is 192.168.0.111
-
Filename 'ramdisk_img.gz'.
-
Load address: 0x88080000
-
Loading: #################################################################
-
#################################################################
-
#####
-
2.6 MiB/s
-
done
-
Bytes transferred = 1971489 (1e1521 hex)
-
=> tftp 0x88000000 am335x-boneblack.dtb
-
link up on port 0, speed 100, full duplex
-
Using cpsw device
-
TFTP from server 192.168.0.96; our IP address is 192.168.0.111
-
Filename 'am335x-boneblack.dtb'.
-
Load address: 0x88000000
-
Loading: #####
-
1.2 MiB/s
-
done
-
Bytes transferred = 60607 (ecbf hex)
-
=> setenv ramdisk root=/dev/ram rw initrd=0x88080000
-
=> setenv bootargs console=ttyO0,115200 $ramdisk
-
=> bootz 0x82000000 0x88080000:0x900000 0x88000000
-
## Flattened Device Tree blob at 88000000
-
Booting using the fdt blob at 0x88000000
-
Loading Ramdisk to 8f700000, end 90000000 ... OK
-
Loading Device Tree to 8f6ee000, end 8f6ffcbe ... OK
-
-
Starting kernel ...
-
-
[ 0.000000] Booting Linux on physical CPU 0x0
-
[ 0.000000] Linux version 4.14.108 (yates@yates-virtual-machine) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #1 SMP PREEMPT Wed Aug 4 10:50:09 CST 2021
-
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
-
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
-
[ 0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black
-
[ 0.000000] Memory policy: Data cache writeback
-
[ 0.000000] efi: Getting EFI parameters from FDT:
-
[ 0.000000] efi: UEFI not found.
-
[ 0.000000] cma: Reserved 48 MiB at 0x9c800000
-
[ 0.000000] CPU: All CPU(s) started in SVC mode.
-
[ 0.000000] AM335X ES2.1 (sgx neon)
-
[ 0.000000] random: get_random_bytes called from start_kernel 0xb0/0x464 with crng_init=0
-
[ 0.000000] percpu: Embedded 18 pages/cpu @df928000 s41100 r8192 d24436 u73728
-
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129412
-
[ 0.000000] Kernel command line: console=ttyO0,115200 root=/dev/ram rw initrd=0x88080000
-
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
-
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
-
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
-
[ 0.000000] Memory: 438552K/522240K available (12288K kernel code, 1067K rwdata, 4180K rodata, 1024K init, 354K bss, 34536K reserved, 49152K cma-reserved, 0K highmem)
-
[ 0.000000] Virtual kernel memory layout:
-
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
-
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
-
[ 0.000000] vmalloc : 0xe0000000 - 0xff800000 ( 504 MB)
-
[ 0.000000] lowmem : 0xc0000000 - 0xdfe00000 ( 510 MB)
-
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
-
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
-
[ 0.000000] .text : 0xc0008000 - 0xc0d00000 (13280 kB)
-
[ 0.000000] .init : 0xc1200000 - 0xc1300000 (1024 kB)
-
[ 0.000000] .data : 0xc1300000 - 0xc140ae80 (1068 kB)
-
[ 0.000000] .bss : 0xc14148a4 - 0xc146d348 ( 355 kB)
-
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
-
[ 0.000000] ftrace: allocating 40641 entries in 120 pages
-
[ 0.000000] Preemptible hierarchical RCU implementation.
-
[ 0.000000] RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
-
[ 0.000000] Tasks RCU enabled.
-
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
-
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
-
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
-
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
-
[ 0.000015] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
-
[ 0.000040] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
-
[ 0.000055] OMAP clocksource: timer1 at 24000000 Hz
-
[ 0.000790] timer_probe: no matching timers found
-
[ 0.001013] Console: colour dummy device 80x30
-
[ 0.001042] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
-
[ 0.001050] This ensures that you still see kernel messages. Please
-
[ 0.001057] update your kernel commandline.
-
[ 0.001082] Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
-
[ 0.046938] pid_max: default: 32768 minimum: 301
-
[ 0.047220] Security Framework initialized
-
[ 0.047240] Yama: becoming mindful.
-
[ 0.047330] AppArmor: AppArmor initialized
-
[ 0.047410] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
-
[ 0.047425] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
-
[ 0.048474] CPU: Testing write buffer coherency: ok
-
[ 0.048549] CPU0: Spectre v2: using BPIALL workaround
-
[ 0.049030] CPU0: thread -1, cpu 0, socket -1, mpidr 0
-
[ 0.063048] Setting up static identity map for 0x80100000 - 0x80100060
-
[ 0.070955] Hierarchical SRCU implementation.
-
[ 0.082127] EFI services will not be available.
-
[ 0.086962] smp: Bringing up secondary CPUs ...
-
[ 0.086982] smp: Brought up 1 node, 1 CPU
-
[ 0.086995] SMP: Total of 1 processors activated (995.32 BogoMIPS).
-
[ 0.087004] CPU: All CPU(s) started in SVC mode.
-
[ 0.088704] devtmpfs: initialized
-
[ 0.103247] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
-
[ 0.103704] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
-
[ 0.103735] futex hash table entries: 256 (order: 2, 16384 bytes)
-
[ 0.107750] xor: automatically using best checksumming function neon
-
[ 0.107786] pinctrl core: initialized pinctrl subsystem
-
[ 0.108988] NET: Registered protocol family 16
-
[ 0.112055] DMA: preallocated 256 KiB pool for atomic coherent allocations
-
[ 0.138683] omap_hwmod: debugss: _wait_target_disable failed
-
[ 0.184989] OMAP GPIO hardware version 0.1
-
[ 0.198579] hw-breakpoint: debug architecture 0x4 unsupported.
-
[ 0.223082] raid6: using algorithm neonx8 gen() 0 MB/s
-
[ 0.223105] raid6: .... xor() 0 MB/s, rmw enabled
-
[ 0.223115] raid6: using neon recovery algorithm
-
[ 0.230178] edma 49000000.edma: TI EDMA DMA engine driver
-
[ 0.233792] SCSI subsystem initialized
-
[ 0.235411] usbcore: registered new interface driver usbfs
-
[ 0.235485] usbcore: registered new interface driver hub
-
[ 0.235609] usbcore: registered new device driver usb
-
[ 0.236181] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
-
[ 0.237678] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
-
[ 0.238056] pps_core: LinuxPPS API ver. 1 registered
-
[ 0.238070] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
-
[ 0.238109] PTP clock support registered
-
[ 0.238626] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
-
[ 0.243274] Advanced Linux Sound Architecture Driver Initialized.
-
[ 0.243968] NetLabel: Initializing
-
[ 0.243984] NetLabel: domain hash size = 128
-
[ 0.243992] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
-
[ 0.244095] NetLabel: unlabeled traffic allowed by default
-
[ 0.247312] clocksource: Switched to clocksource timer1
-
[ 0.379549] VFS: Disk quotas dquot_6.6.0
-
[ 0.379706] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
-
[ 0.380476] AppArmor: AppArmor Filesystem Enabled
-
[ 0.392332] NET: Registered protocol family 2
-
[ 0.393209] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
-
[ 0.393262] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
-
[ 0.393324] TCP: Hash tables configured (established 4096 bind 4096)
-
[ 0.393449] UDP hash table entries: 256 (order: 1, 8192 bytes)
-
[ 0.393475] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
-
[ 0.393686] NET: Registered protocol family 1
-
[ 0.402644] RPC: Registered named UNIX socket transport module.
-
[ 0.402662] RPC: Registered udp transport module.
-
[ 0.402671] RPC: Registered tcp transport module.
-
[ 0.402679] RPC: Registered tcp NFSv4.1 backchannel transport module.
-
[ 0.403543] Trying to unpack rootfs image as initramfs...
-
[ 0.404497] rootfs image is not initramfs (no cpio magic); looks like an initrd
-
[ 0.475841] Freeing initrd memory: 9216K
-
[ 0.476330] hw perfevents: no interrupt-affinity property for /pmu, guessing.
-
[ 0.476616] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
-
[ 0.478300] audit: initializing netlink subsys (disabled)
-
[ 0.479733] audit: type=2000 audit(0.476:1): state=initialized audit_enabled=0 res=1
-
[ 0.479925] workingset: timestamp_bits=14 max_order=17 bucket_order=3
-
[ 0.485651] zbud: loaded
-
[ 0.493140] NFS: Registering the id_resolver key type
-
[ 0.493195] Key type id_resolver registered
-
[ 0.493205] Key type id_legacy registered
-
[ 0.493228] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
-
[ 0.493614] fuse init (API version 7.26)
-
[ 0.503468] Key type asymmetric registered
-
[ 0.503493] Asymmetric key parser 'x509' registered
-
[ 0.503626] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
-
[ 0.508005] io scheduler noop registered
-
[ 0.508025] io scheduler deadline registered
-
[ 0.508305] io scheduler cfq registered (default)
-
[ 0.508320] io scheduler mq-deadline registered
-
[ 0.509940] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
-
[ 0.511132] gpio-of-helper ocp:cape-universal: ready
-
[ 0.514208] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
-
[ 0.515913] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
-
[ 0.519598] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250
-
[ 1.302727] random: fast init done
-
[ 1.306209] console [ttyS0] enabled
-
[ 1.312402] omap_rng 48310000.rng: Random Number Generator ver. 20
-
[ 1.319264] sdhci: Secure Digital Host Controller Interface driver
-
[ 1.325539] sdhci: Copyright(c) Pierre Ossman
-
[ 1.330334] omap_hsmmc 48060000.mmc: Got CD GPIO
-
[ 1.415659] sdhci-pltfm: SDHCI platform and OF driver helper
-
[ 1.422769] [drm] Initialized vgem 1.0.0 20120112 for vgem on minor 0
-
[ 1.429930] usbcore: registered new interface driver udl
-
[ 1.461384] brd: module loaded
-
[ 1.467684] mmc0: host does not support reading read-only switch, assuming write-enable
-
[ 1.482920] mmc0: new high speed SDHC card at address aaaa
-
[ 1.489301] mmc1: new high speed MMC card at address 0001
-
[ 1.500710] mmcblk1: mmc1:0001 MMC04G 3.60 GiB
-
[ 1.505428] mmcblk0: mmc0:aaaa SL16G 14.8 GiB
-
[ 1.516635] mmcblk0: p1 p2
-
[ 1.520927] mmcblk1boot0: mmc1:0001 MMC04G partition 1 2.00 MiB
-
[ 1.531791] at24 2-0054: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
-
[ 1.539630] mmcblk1boot1: mmc1:0001 MMC04G partition 2 2.00 MiB
-
[ 1.545984] at24 2-0055: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
-
[ 1.553512] mmcblk1rpmb: mmc1:0001 MMC04G partition 3 128 KiB
-
[ 1.560654] mmcblk1: p1 p2
-
[ 1.564030] at24 2-0056: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
-
[ 1.573882] at24 2-0057: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
-
[ 1.584567] libphy: Fixed MDIO Bus: probed
-
[ 1.589712] CAN device driver interface
-
[ 1.647353] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
-
[ 1.655102] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
-
[ 1.661737] MDIO: davinci_mdio: dt: updated phy_id[0] from phy_mask[fffffffe]
-
[ 1.674696] libphy: 4a101000.mdio: probed
-
[ 1.678987] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
-
[ 1.689281] cpsw 4a100000.ethernet: Detected MACID = 1c:ba:8c:e3:13:9b
-
[ 1.696196] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
-
[ 1.702686] cpsw 4a100000.ethernet: ALE Table size 1024
-
[ 1.708037] cpsw 4a100000.ethernet: cpts: overflow check period 1250 (jiffies)
-
[ 1.717036] usbcore: registered new interface driver smsc95xx
-
[ 1.723889] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
-
[ 1.730547] ehci-platform: EHCI generic platform driver
-
[ 1.736027] ehci-omap: OMAP-EHCI Host Controller driver
-
[ 1.741809] usbcore: registered new interface driver usb-storage
-
[ 1.750404] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc not found, using dummy regulator
-
[ 1.763175] am335x-phy-driver 47401b00.usb-phy: 47401b00.usb-phy supply vcc not found, using dummy regulator
-
[ 1.777401] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
-
[ 1.782838] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
-
[ 1.790605] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
-
[ 1.797473] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
-
[ 1.804753] usb usb1: Product: MUSB HDRC host driver
-
[ 1.809763] usb usb1: Manufacturer: Linux 4.14.108 musb-hcd
-
[ 1.815382] usb usb1: SerialNumber: musb-hdrc.1
-
[ 1.820787] hub 1-0:1.0: USB hub found
-
[ 1.824878] hub 1-0:1.0: 1 port detected
-
[ 1.839959] omap_rtc 44e3e000.rtc: registered as rtc0
-
[ 1.846241] i2c /dev entries driver
-
[ 1.852812] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
-
[ 1.860261] softdog: initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0)
-
[ 1.871075] ledtrig-cpu: registered to indicate activity on CPUs
-
[ 1.877640] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
-
[ 1.883832] omap-aes 53500000.aes: will run requests pump with realtime priority
-
[ 1.893467] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
-
[ 1.902382] hidraw: raw HID events driver (C) Jiri Kosina
-
[ 1.909106] remoteproc remoteproc0: wkup_m3 is available
-
[ 1.920609] Netfilter messages via NETLINK v0.30.
-
[ 1.925835] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
-
[ 1.932621] nf_tables: (c) 2007-2009 Patrick McHardy <kaber@trash.net>
-
[ 1.939268] nf_tables_compat: (c) 2012 Pablo Neira Ayuso <pablo@netfilter.org>
-
[ 1.946787] wireguard: WireGuard 0.0.20191219 loaded. See www.wireguard.com for information.
-
[ 1.955320] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
-
[ 1.965326] ip_tables: (C) 2000-2006 Netfilter Core Team
-
[ 1.972246] NET: Registered protocol family 10
-
[ 1.982448] Segment Routing with IPv6
-
[ 1.986342] mip6: Mobile IPv6
-
[ 1.989373] NET: Registered protocol family 17
-
[ 1.993879] can: controller area network core (rev 20170425 abi 9)
-
[ 2.000212] NET: Registered protocol family 29
-
[ 2.004774] 8021q: 802.1Q VLAN Support v1.8
-
[ 2.009076] Key type dns_resolver registered
-
[ 2.013401] mpls_gso: MPLS GSO support
-
[ 2.017330] omap_voltage_late_init: Voltage driver support not added
-
[ 2.024083] PM: Cannot get wkup_m3_ipc handle
-
[ 2.028720] ThumbEE CPU extension supported.
-
[ 2.033084] Registering SWP/SWPB emulation handler
-
[ 2.038909] registered taskstats version 1
-
[ 2.043253] zswap: loaded using pool lzo/zbud
-
[ 2.050129] Btrfs loaded, crc32c=crc32c-generic
-
[ 2.054898] AppArmor: AppArmor sha1 policy hashing enabled
-
[ 2.105066] input: tps65217_pwr_but as /devices/platform/ocp/44e0b000.i2c/i2c-0/0-0024/tps65217-pwrbutton/input/input0
-
[ 2.116842] tps65217 0-0024: TPS65217 ID 0xe version 1.2
-
[ 2.122810] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
-
[ 2.254162] tda998x 0-0070: found TDA19988
-
[ 2.259816] tilcdc 4830e000.lcdc: bound 0-0070 (ops tda998x_ops)
-
[ 2.265948] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
-
[ 2.272622] [drm] No driver support for vblank timestamp query.
-
[ 2.279046] [drm] Cannot find any crtc or sizes
-
[ 2.284380] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 1
-
[ 2.292046] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
-
[ 2.299390] remoteproc remoteproc0: powering up wkup_m3
-
[ 2.304739] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
-
[ 2.313174] remoteproc remoteproc0: remote processor wkup_m3 is now up
-
[ 2.313191] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
-
[ 2.330568] bone_capemgr bone_capemgr: Baseboard: 'A335BNLT,000B,1414BBBK1169'
-
[ 2.337931] bone_capemgr bone_capemgr: compatible-baseboard=ti,beaglebone-black - #slots=4
-
[ 2.372368] bone_capemgr bone_capemgr: slot #0: No cape found
-
[ 2.403350] bone_capemgr bone_capemgr: slot #1: No cape found
-
[ 2.435948] bone_capemgr bone_capemgr: slot #2: No cape found
-
[ 2.468557] bone_capemgr bone_capemgr: slot #3: No cape found
-
[ 2.474430] bone_capemgr bone_capemgr: initialized OK.
-
[ 2.487055] hdmi-audio-codec hdmi-audio-codec.0.auto: ASoC: no source widget found for Playback
-
[ 2.496031] hdmi-audio-codec hdmi-audio-codec.0.auto: ASoC: Failed to add route Playback -> direct -> TX
-
[ 2.506397] asoc-simple-card sound: i2s-hifi <-> 48038000.mcasp mapping ok
-
[ 2.514989] PM: bootloader does not support rtc-only!
-
[ 2.521112] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801)
-
[ 2.529902] of_cfs_init
-
[ 2.532552] of_cfs_init: OK
-
[ 2.536063] ALSA device list:
-
[ 2.539058] #0: TI BeagleBone Black
-
[ 2.543549] RAMDISK: gzip image found at block 0
-
[ 2.782321] EXT4-fs (ram0): mounting ext2 file system using the ext4 subsystem
-
[ 2.796310] EXT4-fs (ram0): mounted filesystem without journal. Opts: (null)
-
[ 2.803647] VFS: Mounted root (ext2 filesystem) on device 1:0.
-
[ 2.809881] devtmpfs: mounted
-
[ 2.819390] Freeing unused kernel memory: 1024K
-
Welcome to
-
===============================
-
ARM-LINUX WORLD
-
BB -- BLACK
-
===============================
-
-
-
Please press Enter to activate this console. [ 3.295821] [drm] Cannot find any crtc or sizes
-
-
/ #
-
/ # ls
-
bin etc linuxrc proc sys
-
dev lib lost found sbin usr
-
/ #
这篇好文章是转载于:学新通技术网
- 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
- 本站站名: 学新通技术网
- 本文地址: /boutique/detail/tanhgaagef
-
photoshop保存的图片太大微信发不了怎么办
PHP中文网 06-15 -
《学习通》视频自动暂停处理方法
HelloWorld317 07-05 -
Android 11 保存文件到外部存储,并分享文件
Luke 10-12 -
word里面弄一个表格后上面的标题会跑到下面怎么办
PHP中文网 06-20 -
photoshop扩展功能面板显示灰色怎么办
PHP中文网 06-14 -
微信公众号没有声音提示怎么办
PHP中文网 03-31 -
excel下划线不显示怎么办
PHP中文网 06-23 -
excel打印预览压线压字怎么办
PHP中文网 06-22 -
TikTok加速器哪个好免费的TK加速器推荐
TK小达人 10-01 -
怎样阻止微信小程序自动打开
PHP中文网 06-13