• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

Beaglebone Black 最小Linux从零系统编译

武飞扬头像
风摇烨
帮助1

最近再研究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

Linux源码下载地址

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编译

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个文件:

  1.  
    mkdir etc
  2.  
    cd etc
  3.  
    vim inittab
  4.  
    vim rc
  5.  
    vim motd

文件具体内容如下:

inittab:

  1.  
    # /etc/inittab
  2.  
    ::sysinit:/etc/init.d/rcS
  3.  
    ::askfirst:-/bin/sh
  4.  
    ::once:/usr/sbin/telnetd -l /bin/login
  5.  
    ::ctrlaltdel:/sbin/reboot
  6.  
    ::shutdown:/bin/umount -a -r

rc:(此文件要求可执行属性,使用chmod x rc修改属性)

  1.  
    #!/bin/sh
  2.  
    hostname BeagleBone
  3.  
    mount -t proc proc /proc
  4.  
    /bin/cat /etc/motd

可以看到这个脚本文件执行的命令有两条:

  1. 将hostname设置为BeagleBone

  2. 挂载proc伪文件系统


motd:

  1.  
    Welcome to
  2.  
    ===============================
  3.  
    ARM-LINUX WORLD
  4.  
    BB -- BLACK
  5.  
    ===============================

该文件用于终端启动打印内容,这里可以任意修改,这里给安利一个字符图标网址 字符图标网址


在etc下创建init.d目录,并将/etc/rcetc/init.d/rcS做符号链接,这是inittab指定的启动脚本

  1.  
    $ mkdir init.d
  2.  
    $ cd init.d
  3.  
    $ ln -s ../rc rcS

创建dev,proc,sys空目录

  1.  
    mkdir dev
  2.  
    mkdir proc
  3.  
    mkdir sys

创建lib目录,把交叉编译工具链lib/ld-2.31.so,libc-2.31.so,libm-2.31.so三个拷贝到_install/lib目录下.

注意,我的交叉编译工具链版本是9.3,这三个文件每个版本名字不一样,读者需要自己区分。别盲目粘贴复制我的命令。

学新通

 学新通

  1.  
    $ mkdir lib
  2.  
    $ cd /usr/arm-linux-gnueabihf/lib
  3.  
    $cp ld-2.31.so ~/BusyBox/system/lib
  4.  
    $cp libc-2.31.so ~/BusyBox/system/lib
  5.  
    $cp libm-2.31.so ~/BusyBox/system/lib

做相应的符号链接:

  1.  
    $ ln -s ld -2.31.so ld-linux-armhf.so.3
  2.  
    $ ln -s libc -2.31.so libc.so.6
  3.  
    $ 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目录下创建设备文件

  1.  
    $ cd dev
  2.  
    $ mknod console c 5 1
  3.  
    $ mknod null c 1 3
  4.  
    $ mknod zero c 1 5

以上对于RAM Disk内容的处理已经完成。接下来只需要压缩, 得到ramdisk_img.gz文件。

  1.  
    $ umount /home/yates/beagleboard/busybox_file/nfs
  2.  
    $ gzip ramdisk_img

到此为止,我们需要文件都准备好了,uboot.img,zImage,am335x-boneblack.dtb,ramdisk_img.gz,MLO把这四个文件准备好放在tftp server文件夹。

关于tftp服务器配置,请参考以下教程

ubuntu 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
  1.  
    yates@yates-virtual-machine:/usr/arm-linux-gnueabihf/lib$ sudo fdisk /dev/sdb
  2.  
     
  3.  
    Welcome to fdisk (util-linux 2.34).
  4.  
    Changes will remain in memory only, until you decide to write them.
  5.  
    Be careful before using the write command.
  6.  
     
  7.  
     
  8.  
    Command (m for help): d
  9.  
    Selected partition 1
  10.  
    Partition 1 has been deleted.
  11.  
     
  12.  
    Command (m for help): p
  13.  
    Disk /dev/sdb: 14.66 GiB, 15720251392 bytes, 30703616 sectors
  14.  
    Disk model: Mass-Storage
  15.  
    Units: sectors of 1 * 512 = 512 bytes
  16.  
    Sector size (logical/physical): 512 bytes / 512 bytes
  17.  
    I/O size (minimum/optimal): 512 bytes / 512 bytes
  18.  
    Disklabel type: dos
  19.  
    Disk identifier: 0x3244345d
  20.  
     
  21.  
    Command (m for help): n
  22.  
    Partition type
  23.  
    p primary (0 primary, 0 extended, 4 free)
  24.  
    e extended (container for logical partitions)
  25.  
    Select (default p): p
  26.  
    Partition number (1-4, default 1): 800000
  27.  
    Value out of range.
  28.  
    Partition number (1-4, default 1):
  29.  
    First sector (2048-30703615, default 2048):
  30.  
    Last sector, /-sectors or /-size{K,M,G,T,P} (2048-30703615, default 30703615): 800000
  31.  
     
  32.  
    Created a new partition 1 of type 'Linux' and of size 389.6 MiB.
  33.  
     
  34.  
    Command (m for help): t
  35.  
    Selected partition 1
  36.  
    Hex code (type L to list all codes): c
  37.  
    Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.
  38.  
     
  39.  
    Command (m for help): a
  40.  
    Selected partition 1
  41.  
    The bootable flag on partition 1 is enabled now.
  42.  
     
  43.  
    Command (m for help): p
  44.  
    Disk /dev/sdb: 14.66 GiB, 15720251392 bytes, 30703616 sectors
  45.  
    Disk model: Mass-Storage
  46.  
    Units: sectors of 1 * 512 = 512 bytes
  47.  
    Sector size (logical/physical): 512 bytes / 512 bytes
  48.  
    I/O size (minimum/optimal): 512 bytes / 512 bytes
  49.  
    Disklabel type: dos
  50.  
    Disk identifier: 0x3244345d
  51.  
     
  52.  
    Device Boot Start End Sectors Size Id Type
  53.  
    /dev/sdb1 * 2048 800000 797953 389.6M c W95 FAT32 (LBA)
  54.  
     
  55.  
    Command (m for help): n
  56.  
    Partition type
  57.  
    p primary (1 primary, 0 extended, 3 free)
  58.  
    e extended (container for logical partitions)
  59.  
    Select (default p): p
  60.  
    Partition number (2-4, default 2):
  61.  
    First sector (800001-30703615, default 800768):
  62.  
    Last sector, /-sectors or /-size{K,M,G,T,P} (800768-30703615, default 30703615):
  63.  
     
  64.  
    Created a new partition 2 of type 'Linux' and of size 14.3 GiB.
  65.  
     
  66.  
    Command (m for help): p
  67.  
    Disk /dev/sdb: 14.66 GiB, 15720251392 bytes, 30703616 sectors
  68.  
    Disk model: Mass-Storage
  69.  
    Units: sectors of 1 * 512 = 512 bytes
  70.  
    Sector size (logical/physical): 512 bytes / 512 bytes
  71.  
    I/O size (minimum/optimal): 512 bytes / 512 bytes
  72.  
    Disklabel type: dos
  73.  
    Disk identifier: 0x3244345d
  74.  
     
  75.  
    Device Boot Start End Sectors Size Id Type
  76.  
    /dev/sdb1 * 2048 800000 797953 389.6M c W95 FAT32 (LBA)
  77.  
    /dev/sdb2 800768 30703615 29902848 14.3G 83 Linux
  78.  
     
  79.  
    Command (m for help): w
  80.  
    The partition table has been altered.
  81.  
    Failed to remove partition 1 from system: Device or resource busy
  82.  
    Failed to add partition 1 to system: Device or resource busy
  83.  
    Failed to add partition 2 to system: Device or resource busy
  84.  
     
  85.  
    The kernel still uses the old partitions. The new table will be used at the next reboot.
  86.  
    Syncing disks.
  87.  
     
  88.  
    yates@yates-virtual-machine:/usr/arm-linux-gnueabihf/lib$ sudo fdisk /dev/sdb
  89.  
     
  90.  
    Welcome to fdisk (util-linux 2.34).
  91.  
    Changes will remain in memory only, until you decide to write them.
  92.  
    Be careful before using the write command.
  93.  
     
学新通

注意以下命令

d:是删除分区

n:是创建逻辑分区

t:是创建磁盘格式,c是W95 FAT32 (LBA)格式

p:打印磁盘信息

a:设置默认启动

w:是写入磁盘

在这里我们创建两个分区,一个是FAT32格式,另外一个是ext2

3.把u-boot.img,MLO文件放到sd卡,另外创建一个uEnv.txt文本,里面填入以下信息

  1.  
    console=ttyO0,115200n8
  2.  
    ipaddr=192.168.0.58
  3.  
    serverip=192.168.0.96
  4.  
    rootpath=/exports/rootfs
  5.  
    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
  6.  
    netboot=echo Booting from network ...; tftp ${loadaddr} ${bootfile}; tftp ${fdtaddr} ${fdtfile}; run netargs; bootz ${loadaddr} - ${fdtaddr}
  7.  
    uenvcmd=run netboot

4.把sd卡插入到板子上,插上网线,上电按住boot键,同时用空格键打断uboot倒数

5.输入以下信息配置网口ip核tftp server ip

  1.  
    setenv ipaddr 192.168.0.111
  2.  
    setenv serverip 192.168.0.96
  3.  
    setenv netmask 255.255.255.0

6.输入以下信息读取zImage,ramdisk_img.gz,am335x-boneblack.dtb

  1.  
    tftp 0x82000000 zImage
  2.  
    tftp 0x88080000 ramdisk_img.gz
  3.  
    tftp 0x88000000 am335x-boneblack.dtb

注意:am335x外设内存起始地址为0x88000000。

第一条命令用于tftp读取zImage,

第二条信息用于读取文件系统

第三条命令用于读取设备树

7.输入以下信息用于引导系统起来

  1.  
    setenv ramdisk root=/dev/ram rw initrd=0x88080000
  2.  
    setenv bootargs console=ttyO0,115200 $ramdisk
  3.  
    bootz 0x82000000 0x88080000:0x900000 0x88000000

注意,第三条命令0x900000是代表文件系统大小

最后我们看下命令行引导过程,可以看到系统成功运行起来,完美撒花。当然目前fs只是运行在ram上面,修改文件无法存储保存在sd卡里面。后面我会出教程如何把rootfs运行在sd卡上,敬请期待。

  1.  
     
  2.  
    U-Boot 2019.04-00002-g07d5700e21 (Mar 06 2020 - 11:24:55 -0600), Build: jenkins-github_Bootloader-Builder-137
  3.  
     
  4.  
    CPU : AM335X-GP rev 2.1
  5.  
    I2C: ready
  6.  
    DRAM: 512 MiB
  7.  
    No match for driver 'omap_hsmmc'
  8.  
    No match for driver 'omap_hsmmc'
  9.  
    Some drivers were not found
  10.  
    Reset Source: Global external warm reset has occurred.
  11.  
    Reset Source: Power-on reset has occurred.
  12.  
    RTC 32KCLK Source: External.
  13.  
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
  14.  
    Loading Environment from EXT4...
  15.  
    ** Unable to use mmc 0:1 for loading the env **
  16.  
    Board: BeagleBone Black
  17.  
    <ethaddr> not set. Validating first E-fuse MAC
  18.  
    BeagleBone Black:
  19.  
    BeagleBone: cape eeprom: i2c_probe: 0x54:
  20.  
    BeagleBone: cape eeprom: i2c_probe: 0x55:
  21.  
    BeagleBone: cape eeprom: i2c_probe: 0x56:
  22.  
    BeagleBone: cape eeprom: i2c_probe: 0x57:
  23.  
    Net: eth0: MII MODE
  24.  
    cpsw, usb_ether
  25.  
    Press SPACE to abort autoboot in 0 seconds
  26.  
    => setenv ipaddr 192.168.0.111
  27.  
    => setenv serverip 192.168.0.96
  28.  
    => setenv netmask 255.255.255.0
  29.  
    => tftp 0x82000000 zImage
  30.  
    link up on port 0, speed 100, full duplex
  31.  
    Using cpsw device
  32.  
    TFTP from server 192.168.0.96; our IP address is 192.168.0.111
  33.  
    Filename 'zImage'.
  34.  
    Load address: 0x82000000
  35.  
    Loading: #################################################################
  36.  
    #################################################################
  37.  
    #################################################################
  38.  
    #################################################################
  39.  
    #################################################################
  40.  
    #################################################################
  41.  
    #################################################################
  42.  
    #################################################################
  43.  
    #################################################################
  44.  
    #################################################################
  45.  
    #################
  46.  
    2.6 MiB/s
  47.  
    done
  48.  
    Bytes transferred = 9781760 (954200 hex)
  49.  
    => tftp 0x88080000 ramdisk_img.gz
  50.  
    link up on port 0, speed 100, full duplex
  51.  
    Using cpsw device
  52.  
    TFTP from server 192.168.0.96; our IP address is 192.168.0.111
  53.  
    Filename 'ramdisk_img.gz'.
  54.  
    Load address: 0x88080000
  55.  
    Loading: #################################################################
  56.  
    #################################################################
  57.  
    #####
  58.  
    2.6 MiB/s
  59.  
    done
  60.  
    Bytes transferred = 1971489 (1e1521 hex)
  61.  
    => tftp 0x88000000 am335x-boneblack.dtb
  62.  
    link up on port 0, speed 100, full duplex
  63.  
    Using cpsw device
  64.  
    TFTP from server 192.168.0.96; our IP address is 192.168.0.111
  65.  
    Filename 'am335x-boneblack.dtb'.
  66.  
    Load address: 0x88000000
  67.  
    Loading: #####
  68.  
    1.2 MiB/s
  69.  
    done
  70.  
    Bytes transferred = 60607 (ecbf hex)
  71.  
    => setenv ramdisk root=/dev/ram rw initrd=0x88080000
  72.  
    => setenv bootargs console=ttyO0,115200 $ramdisk
  73.  
    => bootz 0x82000000 0x88080000:0x900000 0x88000000
  74.  
    ## Flattened Device Tree blob at 88000000
  75.  
    Booting using the fdt blob at 0x88000000
  76.  
    Loading Ramdisk to 8f700000, end 90000000 ... OK
  77.  
    Loading Device Tree to 8f6ee000, end 8f6ffcbe ... OK
  78.  
     
  79.  
    Starting kernel ...
  80.  
     
  81.  
    [ 0.000000] Booting Linux on physical CPU 0x0
  82.  
    [ 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
  83.  
    [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
  84.  
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
  85.  
    [ 0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black
  86.  
    [ 0.000000] Memory policy: Data cache writeback
  87.  
    [ 0.000000] efi: Getting EFI parameters from FDT:
  88.  
    [ 0.000000] efi: UEFI not found.
  89.  
    [ 0.000000] cma: Reserved 48 MiB at 0x9c800000
  90.  
    [ 0.000000] CPU: All CPU(s) started in SVC mode.
  91.  
    [ 0.000000] AM335X ES2.1 (sgx neon)
  92.  
    [ 0.000000] random: get_random_bytes called from start_kernel 0xb0/0x464 with crng_init=0
  93.  
    [ 0.000000] percpu: Embedded 18 pages/cpu @df928000 s41100 r8192 d24436 u73728
  94.  
    [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129412
  95.  
    [ 0.000000] Kernel command line: console=ttyO0,115200 root=/dev/ram rw initrd=0x88080000
  96.  
    [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
  97.  
    [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
  98.  
    [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
  99.  
    [ 0.000000] Memory: 438552K/522240K available (12288K kernel code, 1067K rwdata, 4180K rodata, 1024K init, 354K bss, 34536K reserved, 49152K cma-reserved, 0K highmem)
  100.  
    [ 0.000000] Virtual kernel memory layout:
  101.  
    [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
  102.  
    [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
  103.  
    [ 0.000000] vmalloc : 0xe0000000 - 0xff800000 ( 504 MB)
  104.  
    [ 0.000000] lowmem : 0xc0000000 - 0xdfe00000 ( 510 MB)
  105.  
    [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
  106.  
    [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
  107.  
    [ 0.000000] .text : 0xc0008000 - 0xc0d00000 (13280 kB)
  108.  
    [ 0.000000] .init : 0xc1200000 - 0xc1300000 (1024 kB)
  109.  
    [ 0.000000] .data : 0xc1300000 - 0xc140ae80 (1068 kB)
  110.  
    [ 0.000000] .bss : 0xc14148a4 - 0xc146d348 ( 355 kB)
  111.  
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
  112.  
    [ 0.000000] ftrace: allocating 40641 entries in 120 pages
  113.  
    [ 0.000000] Preemptible hierarchical RCU implementation.
  114.  
    [ 0.000000] RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
  115.  
    [ 0.000000] Tasks RCU enabled.
  116.  
    [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
  117.  
    [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
  118.  
    [ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
  119.  
    [ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
  120.  
    [ 0.000015] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
  121.  
    [ 0.000040] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
  122.  
    [ 0.000055] OMAP clocksource: timer1 at 24000000 Hz
  123.  
    [ 0.000790] timer_probe: no matching timers found
  124.  
    [ 0.001013] Console: colour dummy device 80x30
  125.  
    [ 0.001042] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
  126.  
    [ 0.001050] This ensures that you still see kernel messages. Please
  127.  
    [ 0.001057] update your kernel commandline.
  128.  
    [ 0.001082] Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
  129.  
    [ 0.046938] pid_max: default: 32768 minimum: 301
  130.  
    [ 0.047220] Security Framework initialized
  131.  
    [ 0.047240] Yama: becoming mindful.
  132.  
    [ 0.047330] AppArmor: AppArmor initialized
  133.  
    [ 0.047410] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
  134.  
    [ 0.047425] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
  135.  
    [ 0.048474] CPU: Testing write buffer coherency: ok
  136.  
    [ 0.048549] CPU0: Spectre v2: using BPIALL workaround
  137.  
    [ 0.049030] CPU0: thread -1, cpu 0, socket -1, mpidr 0
  138.  
    [ 0.063048] Setting up static identity map for 0x80100000 - 0x80100060
  139.  
    [ 0.070955] Hierarchical SRCU implementation.
  140.  
    [ 0.082127] EFI services will not be available.
  141.  
    [ 0.086962] smp: Bringing up secondary CPUs ...
  142.  
    [ 0.086982] smp: Brought up 1 node, 1 CPU
  143.  
    [ 0.086995] SMP: Total of 1 processors activated (995.32 BogoMIPS).
  144.  
    [ 0.087004] CPU: All CPU(s) started in SVC mode.
  145.  
    [ 0.088704] devtmpfs: initialized
  146.  
    [ 0.103247] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
  147.  
    [ 0.103704] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
  148.  
    [ 0.103735] futex hash table entries: 256 (order: 2, 16384 bytes)
  149.  
    [ 0.107750] xor: automatically using best checksumming function neon
  150.  
    [ 0.107786] pinctrl core: initialized pinctrl subsystem
  151.  
    [ 0.108988] NET: Registered protocol family 16
  152.  
    [ 0.112055] DMA: preallocated 256 KiB pool for atomic coherent allocations
  153.  
    [ 0.138683] omap_hwmod: debugss: _wait_target_disable failed
  154.  
    [ 0.184989] OMAP GPIO hardware version 0.1
  155.  
    [ 0.198579] hw-breakpoint: debug architecture 0x4 unsupported.
  156.  
    [ 0.223082] raid6: using algorithm neonx8 gen() 0 MB/s
  157.  
    [ 0.223105] raid6: .... xor() 0 MB/s, rmw enabled
  158.  
    [ 0.223115] raid6: using neon recovery algorithm
  159.  
    [ 0.230178] edma 49000000.edma: TI EDMA DMA engine driver
  160.  
    [ 0.233792] SCSI subsystem initialized
  161.  
    [ 0.235411] usbcore: registered new interface driver usbfs
  162.  
    [ 0.235485] usbcore: registered new interface driver hub
  163.  
    [ 0.235609] usbcore: registered new device driver usb
  164.  
    [ 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
  165.  
    [ 0.237678] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
  166.  
    [ 0.238056] pps_core: LinuxPPS API ver. 1 registered
  167.  
    [ 0.238070] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
  168.  
    [ 0.238109] PTP clock support registered
  169.  
    [ 0.238626] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
  170.  
    [ 0.243274] Advanced Linux Sound Architecture Driver Initialized.
  171.  
    [ 0.243968] NetLabel: Initializing
  172.  
    [ 0.243984] NetLabel: domain hash size = 128
  173.  
    [ 0.243992] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
  174.  
    [ 0.244095] NetLabel: unlabeled traffic allowed by default
  175.  
    [ 0.247312] clocksource: Switched to clocksource timer1
  176.  
    [ 0.379549] VFS: Disk quotas dquot_6.6.0
  177.  
    [ 0.379706] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
  178.  
    [ 0.380476] AppArmor: AppArmor Filesystem Enabled
  179.  
    [ 0.392332] NET: Registered protocol family 2
  180.  
    [ 0.393209] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
  181.  
    [ 0.393262] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
  182.  
    [ 0.393324] TCP: Hash tables configured (established 4096 bind 4096)
  183.  
    [ 0.393449] UDP hash table entries: 256 (order: 1, 8192 bytes)
  184.  
    [ 0.393475] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
  185.  
    [ 0.393686] NET: Registered protocol family 1
  186.  
    [ 0.402644] RPC: Registered named UNIX socket transport module.
  187.  
    [ 0.402662] RPC: Registered udp transport module.
  188.  
    [ 0.402671] RPC: Registered tcp transport module.
  189.  
    [ 0.402679] RPC: Registered tcp NFSv4.1 backchannel transport module.
  190.  
    [ 0.403543] Trying to unpack rootfs image as initramfs...
  191.  
    [ 0.404497] rootfs image is not initramfs (no cpio magic); looks like an initrd
  192.  
    [ 0.475841] Freeing initrd memory: 9216K
  193.  
    [ 0.476330] hw perfevents: no interrupt-affinity property for /pmu, guessing.
  194.  
    [ 0.476616] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
  195.  
    [ 0.478300] audit: initializing netlink subsys (disabled)
  196.  
    [ 0.479733] audit: type=2000 audit(0.476:1): state=initialized audit_enabled=0 res=1
  197.  
    [ 0.479925] workingset: timestamp_bits=14 max_order=17 bucket_order=3
  198.  
    [ 0.485651] zbud: loaded
  199.  
    [ 0.493140] NFS: Registering the id_resolver key type
  200.  
    [ 0.493195] Key type id_resolver registered
  201.  
    [ 0.493205] Key type id_legacy registered
  202.  
    [ 0.493228] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
  203.  
    [ 0.493614] fuse init (API version 7.26)
  204.  
    [ 0.503468] Key type asymmetric registered
  205.  
    [ 0.503493] Asymmetric key parser 'x509' registered
  206.  
    [ 0.503626] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
  207.  
    [ 0.508005] io scheduler noop registered
  208.  
    [ 0.508025] io scheduler deadline registered
  209.  
    [ 0.508305] io scheduler cfq registered (default)
  210.  
    [ 0.508320] io scheduler mq-deadline registered
  211.  
    [ 0.509940] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
  212.  
    [ 0.511132] gpio-of-helper ocp:cape-universal: ready
  213.  
    [ 0.514208] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
  214.  
    [ 0.515913] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
  215.  
    [ 0.519598] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250
  216.  
    [ 1.302727] random: fast init done
  217.  
    [ 1.306209] console [ttyS0] enabled
  218.  
    [ 1.312402] omap_rng 48310000.rng: Random Number Generator ver. 20
  219.  
    [ 1.319264] sdhci: Secure Digital Host Controller Interface driver
  220.  
    [ 1.325539] sdhci: Copyright(c) Pierre Ossman
  221.  
    [ 1.330334] omap_hsmmc 48060000.mmc: Got CD GPIO
  222.  
    [ 1.415659] sdhci-pltfm: SDHCI platform and OF driver helper
  223.  
    [ 1.422769] [drm] Initialized vgem 1.0.0 20120112 for vgem on minor 0
  224.  
    [ 1.429930] usbcore: registered new interface driver udl
  225.  
    [ 1.461384] brd: module loaded
  226.  
    [ 1.467684] mmc0: host does not support reading read-only switch, assuming write-enable
  227.  
    [ 1.482920] mmc0: new high speed SDHC card at address aaaa
  228.  
    [ 1.489301] mmc1: new high speed MMC card at address 0001
  229.  
    [ 1.500710] mmcblk1: mmc1:0001 MMC04G 3.60 GiB
  230.  
    [ 1.505428] mmcblk0: mmc0:aaaa SL16G 14.8 GiB
  231.  
    [ 1.516635] mmcblk0: p1 p2
  232.  
    [ 1.520927] mmcblk1boot0: mmc1:0001 MMC04G partition 1 2.00 MiB
  233.  
    [ 1.531791] at24 2-0054: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
  234.  
    [ 1.539630] mmcblk1boot1: mmc1:0001 MMC04G partition 2 2.00 MiB
  235.  
    [ 1.545984] at24 2-0055: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
  236.  
    [ 1.553512] mmcblk1rpmb: mmc1:0001 MMC04G partition 3 128 KiB
  237.  
    [ 1.560654] mmcblk1: p1 p2
  238.  
    [ 1.564030] at24 2-0056: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
  239.  
    [ 1.573882] at24 2-0057: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
  240.  
    [ 1.584567] libphy: Fixed MDIO Bus: probed
  241.  
    [ 1.589712] CAN device driver interface
  242.  
    [ 1.647353] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
  243.  
    [ 1.655102] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
  244.  
    [ 1.661737] MDIO: davinci_mdio: dt: updated phy_id[0] from phy_mask[fffffffe]
  245.  
    [ 1.674696] libphy: 4a101000.mdio: probed
  246.  
    [ 1.678987] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
  247.  
    [ 1.689281] cpsw 4a100000.ethernet: Detected MACID = 1c:ba:8c:e3:13:9b
  248.  
    [ 1.696196] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
  249.  
    [ 1.702686] cpsw 4a100000.ethernet: ALE Table size 1024
  250.  
    [ 1.708037] cpsw 4a100000.ethernet: cpts: overflow check period 1250 (jiffies)
  251.  
    [ 1.717036] usbcore: registered new interface driver smsc95xx
  252.  
    [ 1.723889] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
  253.  
    [ 1.730547] ehci-platform: EHCI generic platform driver
  254.  
    [ 1.736027] ehci-omap: OMAP-EHCI Host Controller driver
  255.  
    [ 1.741809] usbcore: registered new interface driver usb-storage
  256.  
    [ 1.750404] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc not found, using dummy regulator
  257.  
    [ 1.763175] am335x-phy-driver 47401b00.usb-phy: 47401b00.usb-phy supply vcc not found, using dummy regulator
  258.  
    [ 1.777401] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
  259.  
    [ 1.782838] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
  260.  
    [ 1.790605] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
  261.  
    [ 1.797473] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
  262.  
    [ 1.804753] usb usb1: Product: MUSB HDRC host driver
  263.  
    [ 1.809763] usb usb1: Manufacturer: Linux 4.14.108 musb-hcd
  264.  
    [ 1.815382] usb usb1: SerialNumber: musb-hdrc.1
  265.  
    [ 1.820787] hub 1-0:1.0: USB hub found
  266.  
    [ 1.824878] hub 1-0:1.0: 1 port detected
  267.  
    [ 1.839959] omap_rtc 44e3e000.rtc: registered as rtc0
  268.  
    [ 1.846241] i2c /dev entries driver
  269.  
    [ 1.852812] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
  270.  
    [ 1.860261] softdog: initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0)
  271.  
    [ 1.871075] ledtrig-cpu: registered to indicate activity on CPUs
  272.  
    [ 1.877640] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
  273.  
    [ 1.883832] omap-aes 53500000.aes: will run requests pump with realtime priority
  274.  
    [ 1.893467] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
  275.  
    [ 1.902382] hidraw: raw HID events driver (C) Jiri Kosina
  276.  
    [ 1.909106] remoteproc remoteproc0: wkup_m3 is available
  277.  
    [ 1.920609] Netfilter messages via NETLINK v0.30.
  278.  
    [ 1.925835] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
  279.  
    [ 1.932621] nf_tables: (c) 2007-2009 Patrick McHardy <kaber@trash.net>
  280.  
    [ 1.939268] nf_tables_compat: (c) 2012 Pablo Neira Ayuso <pablo@netfilter.org>
  281.  
    [ 1.946787] wireguard: WireGuard 0.0.20191219 loaded. See www.wireguard.com for information.
  282.  
    [ 1.955320] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
  283.  
    [ 1.965326] ip_tables: (C) 2000-2006 Netfilter Core Team
  284.  
    [ 1.972246] NET: Registered protocol family 10
  285.  
    [ 1.982448] Segment Routing with IPv6
  286.  
    [ 1.986342] mip6: Mobile IPv6
  287.  
    [ 1.989373] NET: Registered protocol family 17
  288.  
    [ 1.993879] can: controller area network core (rev 20170425 abi 9)
  289.  
    [ 2.000212] NET: Registered protocol family 29
  290.  
    [ 2.004774] 8021q: 802.1Q VLAN Support v1.8
  291.  
    [ 2.009076] Key type dns_resolver registered
  292.  
    [ 2.013401] mpls_gso: MPLS GSO support
  293.  
    [ 2.017330] omap_voltage_late_init: Voltage driver support not added
  294.  
    [ 2.024083] PM: Cannot get wkup_m3_ipc handle
  295.  
    [ 2.028720] ThumbEE CPU extension supported.
  296.  
    [ 2.033084] Registering SWP/SWPB emulation handler
  297.  
    [ 2.038909] registered taskstats version 1
  298.  
    [ 2.043253] zswap: loaded using pool lzo/zbud
  299.  
    [ 2.050129] Btrfs loaded, crc32c=crc32c-generic
  300.  
    [ 2.054898] AppArmor: AppArmor sha1 policy hashing enabled
  301.  
    [ 2.105066] input: tps65217_pwr_but as /devices/platform/ocp/44e0b000.i2c/i2c-0/0-0024/tps65217-pwrbutton/input/input0
  302.  
    [ 2.116842] tps65217 0-0024: TPS65217 ID 0xe version 1.2
  303.  
    [ 2.122810] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
  304.  
    [ 2.254162] tda998x 0-0070: found TDA19988
  305.  
    [ 2.259816] tilcdc 4830e000.lcdc: bound 0-0070 (ops tda998x_ops)
  306.  
    [ 2.265948] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
  307.  
    [ 2.272622] [drm] No driver support for vblank timestamp query.
  308.  
    [ 2.279046] [drm] Cannot find any crtc or sizes
  309.  
    [ 2.284380] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 1
  310.  
    [ 2.292046] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
  311.  
    [ 2.299390] remoteproc remoteproc0: powering up wkup_m3
  312.  
    [ 2.304739] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
  313.  
    [ 2.313174] remoteproc remoteproc0: remote processor wkup_m3 is now up
  314.  
    [ 2.313191] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
  315.  
    [ 2.330568] bone_capemgr bone_capemgr: Baseboard: 'A335BNLT,000B,1414BBBK1169'
  316.  
    [ 2.337931] bone_capemgr bone_capemgr: compatible-baseboard=ti,beaglebone-black - #slots=4
  317.  
    [ 2.372368] bone_capemgr bone_capemgr: slot #0: No cape found
  318.  
    [ 2.403350] bone_capemgr bone_capemgr: slot #1: No cape found
  319.  
    [ 2.435948] bone_capemgr bone_capemgr: slot #2: No cape found
  320.  
    [ 2.468557] bone_capemgr bone_capemgr: slot #3: No cape found
  321.  
    [ 2.474430] bone_capemgr bone_capemgr: initialized OK.
  322.  
    [ 2.487055] hdmi-audio-codec hdmi-audio-codec.0.auto: ASoC: no source widget found for Playback
  323.  
    [ 2.496031] hdmi-audio-codec hdmi-audio-codec.0.auto: ASoC: Failed to add route Playback -> direct -> TX
  324.  
    [ 2.506397] asoc-simple-card sound: i2s-hifi <-> 48038000.mcasp mapping ok
  325.  
    [ 2.514989] PM: bootloader does not support rtc-only!
  326.  
    [ 2.521112] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801)
  327.  
    [ 2.529902] of_cfs_init
  328.  
    [ 2.532552] of_cfs_init: OK
  329.  
    [ 2.536063] ALSA device list:
  330.  
    [ 2.539058] #0: TI BeagleBone Black
  331.  
    [ 2.543549] RAMDISK: gzip image found at block 0
  332.  
    [ 2.782321] EXT4-fs (ram0): mounting ext2 file system using the ext4 subsystem
  333.  
    [ 2.796310] EXT4-fs (ram0): mounted filesystem without journal. Opts: (null)
  334.  
    [ 2.803647] VFS: Mounted root (ext2 filesystem) on device 1:0.
  335.  
    [ 2.809881] devtmpfs: mounted
  336.  
    [ 2.819390] Freeing unused kernel memory: 1024K
  337.  
    Welcome to
  338.  
    ===============================
  339.  
    ARM-LINUX WORLD
  340.  
    BB -- BLACK
  341.  
    ===============================
  342.  
     
  343.  
     
  344.  
    Please press Enter to activate this console. [ 3.295821] [drm] Cannot find any crtc or sizes
  345.  
     
  346.  
    / #
  347.  
    / # ls
  348.  
    bin etc linuxrc proc sys
  349.  
    dev lib lost found sbin usr
  350.  
    / #
学新通

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhgaagef
系列文章
更多 icon
同类精品
更多 icon
继续加载