buildroot學習(八)——at91sam9g45軟體平臺更新
轉載地址:https://blog.csdn.net/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.csdn.net/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 ([email protected]) (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 [email protected], 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::[email protected]: 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 ([email protected]) (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 [email protected], 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:[email protected]: 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
#
---------------------
作者:海邊自在生活
來源:CSDN
原文:https://blog.csdn.net/srf1986/article/details/52462863
版權宣告:本文為博主原創文章,轉載請附上博文連結!