转载地址:https://blog.youkuaiyun.com/srf1986/article/details/52462863
昨天突然感冒了,整个人都不好了,好从下午上班到下班,感觉到体力就像质量非常好的下降沿,突然没劲了,好不容易爬回了家,倒头就睡,经过了一天的调养,身体恢复点了,既然有体力了,那就继续计算机世界的探险吧
下面的内容,是吧buildroot安装到开发板上进行运行,解决有无问题,能在开发板上运行后,后期就是根据需要,按个添加工具了
YL-9g45平台,buildroot移植
1、硬件平台资源
(1)400MHz at91sam9g45处理器
(2)128MByte DDR2SDRAM
(3)256MByte NANDFLASH
(4)10/100Mbps以太网
(5)1个USB HOST端口
(6)1个DBUG串口,用于console登陆,一个usb device端口,用于操作系统的烧写
2、软件平台
使用buildroot2016.05稳定版
(1)解压buildroot压缩包,进入解压后的目录
(2)选择参考平台
make list-defconfigs 列举出当前的参考平台
我选择的是at91sam9g45m10ek_defconfig
make at91sam9g45m10ek_defconfig 使用配置选项
(3)平台配置
make menuconfig 进入配置界面
(4)选择交叉编译工具
在toolchain -->选项中进行配置使用Sourcery CodeBench ARM 2014.05
(5)选择bootstrap版本
在bootloads--> 选项中,配置AT91 Bootstrap3
下载地址为:git://github.com/linux4sam/at91bootstrap.git
版本为:at91bootstrap-3.5.x
(6)选择uboot版本
在bootloads--> 选项中,配置AT91 Bootstrap3
下载地址为:git://github.com/linux4sam/u-boot-at91.git
版本为:u-boot-2016.03-at91
(7)linux-kernel
在kernel-->选项中,配置
下载地址为:https://github.com/linux4sam/linux-at91.git
版本为:linux-4.4-at91
load address 为:0x70008000
(8)根文件系统类型
在Filesystem image-->选项中,使用ubifs文件系统类型配置
更改maximum logical eraseblock count为:1919
(9)下载所需资源
在buildroot根目录下,使用命令:make source,进行源码下载
(10)更改内核对根文件系统的分区
进入./dl文件夹,解压linux-linux-4.4-at91.tar.gz
进入linux-linux-4.4-at91/arch/arm/boot/dts/
修改文件vi at91sam9m10g45ek.dts
修改nandflash分区为,我只有两个分区,第一个分区放置,启动代码和内核8MByte,第二个分区放置根文件系统248MByte
保存退出,删除之前的linux-linux-4.4-at91.tar.gz,将现在的linux-linux-4.4-at91目录,压缩成linux-linux-4.4-at91.tar.gz。
(11)编译工程
回到buildroot根目录,使用make命令进行工程编译。
在output/image/下生成烧写文件
nandflash地址划分如下:
0x0 ~ 0x40000 AT91Bootstrap(256KByte)
0x40000 ~ 0xc0000 uboot(512KByte)
0xc0000 ~ 0x100000 uboot_env(256KByte)
0x100000 ~0x140000 uboot_env_Redundant(256KByte)
0x140000 ~ 0x180000 unuse
0x180000 ~ 0x200000 Device Tree(dtb) (512KByte)
0x200000 ~ 0x800000 linux-kernel (6MByte)
0x800000 ~ 0x10000000 Rootfs (248MByte)
samba烧写方式:
at91sam9m10g45ek-nandflashboot-uboot-3.6.0.bin 使用send file file
u-boot.bin 烧写到0x40000地址
u-boot_env 烧写到0xc0000地址
at91sam9m10g45ek.dtb 烧写到0x180000地址
uImage 烧写到 0x200000地址
rootfs.ubi 烧写到0x800000地址
(12)uboot环境变量
baudrate=115200
bootargs=mem=128M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=ubifs ubi.mtd=1 root=ubi0:rootfs
bootargs_net=mem=128M console=ttyS0,115200 root=/dev/nfs ip=192.150.100.201 nfsroot=192.150.100.101:/home/shirf/nfs_file/rootfs,v3,tcp
bootcmd=run bootcmd_nand
bootcmd_nand=nand read 0x71000000 0x180000 0x80000;nand read 0x72000000 0x200000 0x600000;bootm 0x72000000 - 0x71000000
bootcmd_net=setenv bootargs ${bootargs_net};tftp 0x71000000 at91sam9m10g45ek.dtb;tftp 0x72000000 uImage;bootm 0x72000000 - 0x71000000
bootdelay=3
ethact=macb0
ethaddr=32:22:29:99:03:6d
ipaddr=192.150.100.201
serverip=192.150.100.101
通过setenv命令进行环境变量的设置
当然环境变量设置好之后,通过samba读取存储在nandflash中的环境变量,起始地址:0xc0000 长度:0x80000,保存称文件名为:uboot_env,这个参数可以按照烧写步骤进行烧写。这个参数里包含环境变量和环境变量校验和
我从开发板上下载下来的环境变量可以通过下面方式下载
http://download.youkuaiyun.com/detail/srf1986/9624549
(13)系统加电启动打印信息
AT91Bootstrap 3.6.0 (Tue Sep 6 16:01:58 CST 2016)
NAND: ONFI not supported
NAND: Manufacturer ID: 0xec Chip ID: 0xda
NAND: Disable On-Die ECC
NAND: Press the recovery button (BP4) to recovery
NAND: Using Software ECC
NAND: Image: Copy 0x80000 bytes from 0x40000 to 0x73f00000
NAND: Done to load image
U-Boot 2016.03-linux4sam_5.3 (Sep 06 2016 - 16:02:05 +0800)
CPU: AT91SAM9G45
Crystal frequency: 12 MHz
CPU clock : 400 MHz
Master clock : 133.333 MHz
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 256 MiB
MMC: mci: 0
In: serial
Out: serial
Err: serial
Net: macb0
Hit any key to stop autoboot: 0
NAND read: device 0 offset 0x180000, size 0x80000
524288 bytes read: OK
NAND read: device 0 offset 0x200000, size 0x600000
6291456 bytes read: OK
## Booting kernel from Legacy Image at 72000000 ...
Image Name: Linux-4.4.17
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3551952 Bytes = 3.4 MiB
Load Address: 70080000
Entry Point: 70080000
Verifying Checksum ... OK
## Flattened Device Tree blob at 71000000
Booting using the fdt blob at 0x71000000
Loading Kernel Image ... OK
Loading Device Tree to 77eb4000, end 77ebd86e ... OK
Starting kernel ...
Booting Linux on physical CPU 0x0
Linux version 4.4.17 (shirf@ubuntu) (gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-29) ) #1 Tue Sep 6 16:07:25 CST 2016
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
CPU: VIVT data cache, VIVT instruction cache
Machine model: Atmel AT91SAM9M10G45-EK
Memory policy: Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: mem=128M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=ubifs ubi.mtd=1 root=ubi0:rootfs
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 122648K/131072K available (4914K kernel code, 176K rwdata, 1668K rodata, 216K init, 128K bss, 8424K reserved, 0K cma-reserved)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc0675de4 (6584 kB)
.init : 0xc0676000 - 0xc06ac000 ( 216 kB)
.data : 0xc06ac000 - 0xc06d8320 ( 177 kB)
.bss : 0xc06d8320 - 0xc06f850c ( 129 kB)
NR_IRQS:16 nr_irqs:16 16
clocksource: pit: mask: 0x7ffffff max_cycles: 0x7ffffff, max_idle_ns: 7167226906 ns
sched_clock: 32 bits at 128 Hz, resolution 7812500ns, wraps every 16777215996093750ns
Console: colour dummy device 80x30
Calibrating delay loop... 198.76 BogoMIPS (lpj=775168)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
Setting up static identity map or 0x70008400 - 0x7000847c
devtmpfs: initialized
device-tree: Duplicate name in fb@0x00500000, renamed to "display#1"
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 14931722236523437 ns
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic cohocations
AT91: Detected SoC family: at91sam9g45
AT91: Detected SoC: at91sam9g45, revision 2
No ATAGs?
gpio-at91 fffff200.gpio: at address c885e200
gpio-at91 fffff400.gpio: at address c8872400
gpio-at91 fffff600.gpio: at address c8874600
gpio-at91 fffff800.gpio: at address c8876800
gpio-at91 fffffa00.gpio: at address c8878a00
pinctrl-at91 ahb::pinctrl@fffff200: initialized AT91 pinctrl driver
clocksource: tcb_clksrc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 114675631333 ns
at_hdmac ffffec00.dma-controller: Atmel AHB DMA Controller ( cpy set slave sg-cpy ), 8 channels
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
at91_i2c fff84000.i2c: can't get DMA channel, continue without DMA support
at91_i2c fff84000.i2c: AT91 i2c bus driver (hw version: 0x302).
at91_i2c fff88000.i2c: can't get DMA channel, continue without DMA support
at91_i2c fff88000.i2c: AT91 i2c bus driver (hw version: 0x302)x video capture interface: v2.00
Advanced Linux Sound Architecture Driver Initialized.
clocksource: Switched to clocksource tcb_clksrc
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
futex hash table entries: 256 (order: -1, 3072 bytes)
io scheduler noop registered (default)
500000.fb supply lcd not found, using dummy regulator
atmel_lcdfb 500000.fb: 510KiB frame buffer at 77a80000 (mapped at c8886000)
Console: switching to colour frame buffer device 120x45
atmel_lcdfb 500000.fb: fb0: Atmel LCDC at 0x00500000 (mapped at c8908000), irq 39
ffffee00.serial: ttyS0 at MMIO 0xffffee00 (irq = 16, base_baud = 8333333) is a ATMEL_SERIAL
console [ttyS0] enabled
fff90000.serial: ttyS2 at MMIO 0xfff90000 (irq = 27, base_baud = 8333333) is a ATMEL_SERIAL
[drm] Initialized drm 1.1.0 20060810
brd: module loaded
loop: module loaded
atmel_nand 400000.nand: Use On Flash BBT
atmel_nand 40000000.nand: Using dma0chan0 for DMA transfers.
nand: device found, Manufacturer ID: 0xec, Chip ID: 0xda
nand: Samsung NAND 256MiB 3,3V 8-bit
nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
Bad block table found at page 131008, version 0x01
Bad block table found at page 130944, version 0x01
nand_read_bbt: bad block at 0x00000b400000
2 ofpart partitions found on MTD device atmel_nand
Creating 2 MTD partitions on "atmel_nand":
0x000000000000-0x000000800000 : "bootstrap/uboot/kernel"
0x000000800000-0x000010000000 : "rootfs"
atmel_spi fffa4000.spi: version: 0x210
atmel_spi fffa4000.spi: Atmel SPI Controller at 0xfffa4000 (irq 37)
libphy: MACB_mii_bus: probed
macb fffbc000.ethernet eth0: Cadence MACB rev 0x0001010c at 0xfffbc000 irq 28 (32:22:29:99:03:6d)
macb fffbc000.ethernet eth0: attached PHY driver [Davicom DM9161A] (mii_bus:phy_addr=fffbc000.etherne:00, irq=-1)
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-atmel: EHCI Atmel driver
atmel-ehci 800000.ehci: EHCI Host Controller
atmel-ehci 800000.ehci: new USB bus registered, assigned bus number 1
atmel-ehci 800000.ehci: irq 40, io mem 0x00800000
atmel-ehci 800000.ehci: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 4.4.17 ehci_hcd
usb usb1: SerialNumber: 800000.ehci
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-atmel: OHCI Atmel driver
at91_ohci 700000.ohci: USB Host Controller
at91_ohci 700000.ohci: new USB bus registered, assigned bus number 2
at91_ohci 700000.ohci: irq 40, io mem 0x00700000
usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: USB Host Controller
usb usb2: Manufacturer: Linux 4.4.17 ohci_hcd
usb usb2: SerialNumber: at91
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usbcore: registered new interfacr cdc_acm
cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver ftdi_sio
usbserial: USB Serial support registered for FTDI USB Srial Device
usbcore: registered new interface driver pl2303
usbserial: USB Serial support registered for pl2303
atmel_usba_udc 600000.gadget: MMIO registers at 0xfff78000 mapped at c8968000
atmel_usba_udc 600000.gadget: FIFO at 0x00600000 mapped at c8e00000
g_serial gadget: Gadget Serial v2.4
g_serial gadget: g_serial ready
mousedev: PS/2 mouse device common for all mice
rtc rtc0: alarm rollover not handled
rtc rtc0: invalid alarm value: 1900-1-1 0:0:0
at91_rtc fffffdb0.rtc: rtc core: registered fffffdb0.rtc as rtc0
at91_rtc fffffdb0.rtc: AT91 Real Time Clock driver.
rtc-at91sam9 fffffd20.rtc: rtc core: registered fffffd20.rtc as rtc1
rtc-at91sam9 fffffd20.rtc: rtc1: SET TIME!
AT91: Starting after general reset
at91_wdt fffffd40.watchdog: watchdog is disabled
at91_w probe of fffffd40.watchdog failed with error -22
atmel_mci fff80000.mmc: version: 0x410
atmel_mci fff80000.mmc: using dma0chan1 for DMA transfers
atmel_mci fff80000.mmc: Atmel MCI controller at 0xfff80000 irq 35, 1 slots
atmel_mci fffd0000.mmc: version: 0x410
atmel_mci fffd0000.mmc: using dma0chan2 for DMA transfers
atmel_mci fffd0000.mmc: Atmel MCI controller at 0xfffd0000 irq 36, 1 slots
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
iio iio:device0: Resolution used: 10 bits
input: at91_adc as /devices/soc0/ahb/ahb:apb/fffb0000.adc/input/input0
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
ubi0: attaching mtd1
ubi0: scanning is finished
ubi0: attached mtd1 (name "rootfs", size 248 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
ubi0: VID header offset: 512 (aligned 512), data offset: 2048
ubi0: good PEBs: 1979, bad PEBs: 5, corrupted PEBs: 0
ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 420027680
ubi0: available PEBs: 0, total reserved PEBs: 1979, PEBs reserved for bad PEB handling: 35
ubi0: background thread "ubi_bgt0d" started, PID 580
input: gpio_keys as /devices/soc0/gpio_keys/input/input1
at91_rtc fffffdb0.rtc: setting system clock to 2007-01-01 00:00:22 UTC (1167609622)
ALSA device list:
No soundcards found.
UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 590
UBIFS (ubi0:0): recovery needed
UBIFS (ubi0:0): recovery completed
UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
UBIFS (ubi0:0): LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
UBIFS (ubi0:0): FS size: 246177792 bytes (234 MiB, 1908 LEBs), journal size 9033728 bytes (8 MiB, 71 LEBs)
UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID ECC68D4B-8CD7-4799-8CD0-E92A7B14496F, small LPT model
VFS: Mounted root (ubifs filesystem) on device 0:14.
devtmpfs: mounted
Freeing unused kernel memory: 216K (c0676000 - c06ac000)
Starting logging: OK
Initializing random number generator... random: dd urandom read with 83 bits of entropy available
done.
Starting network...
Welcome to Buildroot
buildroot login: root
#
输入root即可通过串口控制台登陆,当然你可以设置root登陆密码。现在完成移植后系统在开发板上加电工作正常。
(14)通过网络下载内核,挂载根文件系统,方便内核调试
设置uboot的环境变量,将bootcmd=run bootcmd_nand 改为bootcmd=run bootcmd_net
uboot环境变量中,设置宿主机IP为serverip=192.150.100.101 ;开发板IP为ipaddr=192.150.100.201 。
bootcmd_net=setenv bootargs ${bootargs_net};tftp 0x71000000 at91sam9m10g45ek.dtb;tftp 0x72000000 uImage;bootm 0x72000000 – 0x71000000
以上环境变量为,从tftp服务器上下载 at91sam9m10g45ek.dtb 到0x71000000, uImage到 0x72000000,启动内核bootm 0x72000000 – 0x71000000
bootargs_net=mem=128M console=ttyS0,115200 root=/dev/nfs ip=192.150.100.201 nfsroot=192.150.100.101:/home/shirf/nfs_file/rootfs,v3,tcp
以上变量为,挂载根文件系统为 192.150.100.101:/home/shirf/nfs_file/rootfs
这个路径跟你的nfs服务器有关系
查看宿主机tftp的设置
/etc/xinetd.d/tftp
其中server_args = -s /home/shirf/my_explore/tftp_file/ 为我的tftp服务器目录,我需要将at91sam9m10g45ek.dtb、 uImage复制到该目录下
查看宿主机nfs的设置
/etc/exports
/home/shirf/nfs_file *(rw,sync,no_root_squash)
我的nfs共享目录地址为/home/shirf/nfs_file,允许所有IP访问,当连接互联网时,需要设置好网络过滤规则。
复制at91sam9m10g45ek.dtb、 uImage到我的tftp服务器文件夹下。
复制rootfs.tar到我的nfs服务器文件夹下,在该目录下建立rootfs目录mkdir rootfs,解压rootfs.tar到rootfs目录下sudo tar -xf rootfs.tar -C rootfs/
从网络启动内核和挂载根文件系统输出信息:
AT91Bootstrap 3.6.0 (Tue Sep 6 16:01:58 CST 2016)
NAND: ONFI not supported
NAND: Manufacturer ID: 0xec Chip ID: 0xda
NAND: Disable On-Die ECC
NAND: Press the recovery button (BP4) to recovery
NAND: Using Software ECC
NAND: Image: Copy 0x80000 bytes from 0x40000 to 0x73f00000
NAND: Done to load image
U-Boot 2016.03-linux4sam_5.3 (Sep 06 2016 - 16:02:05 +0800)
CPU: AT91SAM9G45
Crystal frequency: 12 MHz
CPU clock : 400 MHz
Master clock : 133.333 MHz
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 256 MiB
MMC: mci: 0
In: serial
Out: serial
Err: serial
Net: macb0
Hit any key to stop autoboot: 0
macb0: Starting autonegotiation...
macb0: Autonegotiation complete
macb0: link up, 100Mbps full-duplex (lpa: 0xc1e1)
Using macb0 device
TFTP from server 192.150.100.101; our IP address is 192.150.100.201
Filename 'at91sam9m10g45ek.dtb'.
Load address: 0x71000000
Loading: ######
4.9 KiB/s
done
Bytes transferred = 26735 (686f hex)
macb0: link up, 100Mbps full-duplex (lpa: 0xc1e1)
Using macb0 device
TFTP from server 192.150.100.101; our IP address is 192.150.100.201
Filename 'uImage'.
Load address: 0x72000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
############################################
922.9 KiB/s
done
Bytes transferred = 3552016 (363310 hex)
## Booting kernel from Legacy Image at 72000000 ...
Image Name: Linux-4.4.17
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3551952 Bytes = 3.4 MiB
Load Address: 70080000
Entry Point: 70080000
Verifying Checksum ... OK
## Flattened Device Tree blob at 71000000
Booting using the fdt blob at 0x71000000
Loading Kernel Image ... OK
Loading Device Tree to 77eb4000, end 77ebd86e ... OK
Starting kernel ...
Booting Linux on physical CPU 0x0
Linux version 4.4.17 (shirf@ubuntu) (gcc version 4.8.3 20140320 (prerelease) (Sourcery CodeBench Lite 2014.05-29) ) #1 Tue Sep 6 16:07:25 CST 2016
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
CPU: VIVT data cache, VIVT instruction cache
Machine model: Atmel AT91SAM9M10G45-EK
Memory policy: Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: mem=128M console=ttyS0,115200 root=/dev/nfs ip=192.150.100.201 nfsroot=192.150.100.101:/home/shirf/nfs_file/rootfs,v3,tcp
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 122648K/131072K available (4914K kernel code, 176K rwdata, 1668K rodata, 216K init, 128K bss, 8424K reserved, 0K cma-reserved)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc0675de4 (6584 kB)
.init : 0xc0676000 - 0xc06ac000 ( 216 kB)
.data : 0xc06ac000 - 0xc06d8320 ( 177 kB)
.bss : 0xc06d8320 - 0xc06f850c ( 129 kB)
NR_IRQS:16 nr_irqs:16 16
clocksource: pit: mask: 0x7ffffff max_cycles: 0x7ffffff, max_idle_ns: 7167226906 ns
sched_clock: 32 bits at 128 Hzsolution 7812500ns, wraps every 16777215996093750ns
Console: colour dummy device 80x30
Calibrating delay loop... 198.76 BogoMIPS (lpj=775168)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x70008400 - 0x7000847c
devtmpfs: initialized
device-tree: Duplicate name in fb@0x00500000, renamed to "display#1"
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 14931722236523437 ns
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
AT91: Detected SoC family: at91sam9g45
AT91: Detected SoC: at91sam9g45, revision 2
No ATAGs?
gpio-at91 fffff200.gpio: at address c885e200
gpio-at91 fffff400.gpio: at address c8872400
gpio-at91 fffff600.gpio: at address c8874600
gpio-at91 fffff800.gpio: at address c8876800
gpio-at91 fffffa00.gpio: at address c8878a00
pinctrl-at91 ahb:apb:pinctrl@fffff200: initialized AT91 pinctrl driver
clocksource: tcb_clksrc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 114675631333 ns
at_hdmac ffffec00.dma-controller: Atmel AHB DMA Controller ( cpy set slave sg-cpy ), 8 channels
SCSI subsystem initialized
usbcore: registered new interface driver ubfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
at91_i2c fff84000.i2c: can't get DMA channel, continue without DMA support
at91_i2c fff84000.i2c: AT91 i2c bus driver (hw version: 0x302).
at91_i2c fff88000.i2c: can't get DMA channel, continue without DMA support
at91_i2c fff88000.i2c: AT91 i2c bus driver (hw version: 0x302).
Linux video capture interface: v2.00
Advanced Linux Sound Architecture Driver Initialized.
clocksource: Switched to clocksource tcb_clksrc
NET: Registered protocol family 2
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
futex hash table entries: 256 (order: -1, 3072 bytes)
io scheduler noop registered (default)
500000.fb supply lcd not found, using dummy regulator
atmel_lcdfb 500000.fb: 510KiB frame buffer at 77b80000 (mapped at c8886000)
Console: switching to colour frame buffer device 120x45
atmel_lcdfb 500000.fb: fb0: Atmel LCDC at 0x00500000 (mapped at c8908000), irq 39
ffffee00.serial: ttyS0 at MMIO 0xffffee00 (irq = 16, base_baud = 8333333) is a ATMEL_SERIAL
console [ttyS0] enabled
fff90000.serial: ttyS2 at MMIO 0xfff90000 (irq = 27, base_baud = 8333333) is a ATMEL_SERIAL
[drm] Initialized drm 1.1.0 20060810
brd: module loaded
loop: module loaded
atmel_nand 40000000.nand: Use On Flash BBT
atmel_nand 40000000.nand: Using dma0chan0 for DMA transfers.
nand: device found, Manufacturer ID: 0xec, Chip ID: 0xda
nand: Samsung NAND 256MiB 3,3V 8-bit
nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
Bad block table found at page 131008, version 0x01
Bad block table found at page 130944, version 0x01
nand_read_bbt: bad block at 0x00000b400000
2 ofpart partitions found on MTD device atmel_nand
Creating 2 MTD partitions on "atmel_nand":
0x000000000000-0x000000800000 : "bootstrap/uboot/kernel"
0x000000800000-0x000010000000 : "rootfs"
atmel_spi fffa4000.spi: version: 0x210
atmel_spi fffa4000.spi: Atmel SPI Controller at 0xfffa4000 (irq 37)
libphy: MACB_mii_bus: probed
macb fffbc000.ethernet eth0: Cadence MACB rev 0x0001010c at 0xfffbc000 irq 28 (32:22:29:99:03:6d)
macb fffbc000.ethernet eth0: attached PHY driver [Davicom DM9161A] (mii_bus:phy_addr=fffbc000.etherne:00, irq=-1)
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-atmel: EHCI Atmel driver
atmel-ehci 800000.ehci: EHCI Host Controller
atmel-ehci 800000.ehci: new USB bus registered, assigned bus number 1
atmel-ehci 800000.ehci: irq 40, io mem 0x00800000
atmel-ehci 800000.ehci: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 4.4.17 ehci_hcd
usb usb1: SerialNumber: 800000.ehci
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-atmel: OHCI Atmel driver
at91_ohci 700000.ohci: USB Host Controller
at91_ohci 700000.ohci: new USB bus registered, assigned bus number 2
at91_ohci 700000.ohci: irq 40, io mem 0x00700000
usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: USB Host Controller
usb usb2: Manufacturer: Linux 4.4.17 ohci_hcd
usb usb2: SerialNumber: at91
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usbcore: registered new interface driver cdc_acm
cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver ftdi_sio
usbserial: USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver pl2303
usbserial: USB Serial support registered for pl2303
atmel_usba_udc 600000.gadget: MMIO registers at 0xfff78000 mapped at c8968000
atmel_usba_udc 600000.gadget: FIFO at 0x00600000 mapped at c8e00000
g_serial gadget: Gadget Serial v2.4
g_serial gadget: g_serial ready
mousedev: PS/2 mouse device common for all mice
rtc rtc0: alarm rollover not handled
rtc rtc0: invalid alarm value: 1900-1-1 0:0:0
at91_rtc fffffdb0.rtc: rtc core: registered fffffdb0.rtc as rtc0
at91_rtc fffffdb0.rtc: AT91 Real Time Clock driver.
rtc-at91sam9 fffffd20.rtc: rtc core: registered fffffd20.rtc as rtc1
rtc-at91sam9 fffffd20.rtc: rtc1: SET TIME!
AT91: Starting after general reset
at91_wdt fffffd40.watchdog: watchdog is disabled
at91_wdt: probe of fffffd40.watchdog failed with error -22
atmel_mci fff80000.mmc: version: 0x410
atmel_mci fff80000.mmc: using dma0chan1 for DMA transfers
atmel_mci fff80000.mmc: Atmel MCI controller at 0xfff80000 irq 35, 1 slots
atmel_mci fffd0000.mmc: version: 0x410
atmel_mci fffd0000.mmc: using dma0chan2 for DMA transfers
atmel_mci fffd0000.mmc: Atmel MCI controller at 0xfffd0000 irq 36, 1 slots
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
iio iio:device0: Resolution used: 10 bits
input: at91_adc as /devices/soc0/ahb/ahb:apb/fffb0000.adc/input/input0
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
input: gpio_keys as /devices/soc0/gpio_keys/input/input1
at91_rtc fffffdb0.rtc: setting system clock to 2007-01-01 00:00:23 UTC (1167609623)
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
macb fffbc000.ethernet eth0: link up (100/Full)
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
device=eth0, hwaddr=32:22:29:99:03:6d, ipaddr=192.150.100.201, mask=255.255.255.0, gw=255.255.255.255
host=192.150.100.201, domain=, nis-domain=(none)
bootserver=255.255.255.255, rootserver=192.150.100.101, rootpath=
ALSA device list:
No soundcards found.
VFS: Mounted root (nfs filesystem) readonly on device 0:14.
devtmpfs: mounted
Freeing unused kernel memory: 216K (c0676000 - c06ac000)
Starting logging: OK
Initializing random number generator... random: dd urandom read with 65 bits of entropy available
done.
Starting network...
ip: RTNETLINK answers: File exists
Welcome to Buildroot
buildroot login: root
#
---------------------
作者:海边自在生活
来源:优快云
原文:https://blog.youkuaiyun.com/srf1986/article/details/52462863
版权声明:本文为博主原创文章,转载请附上博文链接!