Après avoir compiler nos différents éléments, nous allons maintenant les insérer sur une carte SD. avant cela, nous allons la formater suivant le tutoriel fourni sur le wiki de raspberry pi. Il suffit simplement de suivre le tutoriel à une petite modification près. Au lieu de formater la partition linux au format Ext3, nous allons la formater au format Ext4.
ensuite, décompressez les deux archives boot.tar.gz et rootfs.tar.gz trouvées dans le dossier de buildroot output/images, dans respectivement, les partitions boot (FAT32 LBA) et rootfs (EXT4) créées précédemment.
A noter que l'extraction de l'archive rootfs doit se faire avec les droits super utilisateurs.
ensuite démonter la carte SD et insérer la sur la carte raspberry pi.
Finalement après avoir ouvert une console série, et branché la raspberry pi, voici les traces de démarrage :
Amusez-vous bien ...
ensuite, décompressez les deux archives boot.tar.gz et rootfs.tar.gz trouvées dans le dossier de buildroot output/images, dans respectivement, les partitions boot (FAT32 LBA) et rootfs (EXT4) créées précédemment.
A noter que l'extraction de l'archive rootfs doit se faire avec les droits super utilisateurs.
# tar xzf output/images/boot.tar.gz -C /media/FAT32_PARTITION # sudo tar xzf output/images/rootfs.tar.gz -C /media/EXT4_PARTITION
ensuite démonter la carte SD et insérer la sur la carte raspberry pi.
# sudo umount /media/FAT32_PARTITION # sudo umount /media/EXT4_PARTITION
Finalement après avoir ouvert une console série, et branché la raspberry pi, voici les traces de démarrage :
Linux version 3.1.9 (sinseman44@BENSERV) (gcc version 4.6.3 (crosstool-NG 1.15.2 - buildroot 2012.05) ) #1 PREEMPT Sun Jul 1 00:50:23 CEST 2012 CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache Machine: BCM2708 Memory policy: ECC disabled, Data cache writeback Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 Kernel command line: dma.dmachans=0x3c bcm2708_fb.fbwidth=720 bcm2708_fb.fbheight=480 bcm2708.boardrev=0x2 bcm2708.serial=0xd5a6dc6e smsc95xx.macaddr=B8:27:EB:A6:DC:6E dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait 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: 128MB = 128MB total Memory: 125572k/125572k available, 5500k reserved, 0K highmem Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) DMA : 0xffc00000 - 0xffe00000 ( 2 MB) vmalloc : 0xc8800000 - 0xd8000000 ( 248 MB) lowmem : 0xc0000000 - 0xc8000000 ( 128 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .text : 0xc0008000 - 0xc03b0000 (3744 kB) .init : 0xc03b0000 - 0xc03cd000 ( 116 kB) .data : 0xc03ce000 - 0xc03ec8c0 ( 123 kB) .bss : 0xc03ec8e4 - 0xc04391d8 ( 307 kB) NR_IRQS:85 timer_set_mode: unhandled mode:1 timer_set_mode: unhandled mode:3 Console: colour dummy device 80x30 console [tty1] enabled Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok devtmpfs: initialized NET: Registered protocol family 16 vc-mem: mm_vc_mem_phys_addr = 0x00000000 vc-mem: mm_vc_mem_size = 0x10000000 (256 MiB) mailbox: Broadcom VideoCore Mailbox driver bcm2708_vcio: mailbox at f200b880 bcm_power: Broadcom power driver bcm_power_open() -> 0 bcm_power_request(0, 8) bcm_mailbox_read -> 00000080, 0 bcm_power_request -> 0 Serial: AMBA PL011 UART driver dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3 console [ttyAMA0] enabled bio: create slabat 0 SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb Switching to clocksource stc FS-Cache: Loaded CacheFiles: Loaded Switched to NOHz mode on CPU #0 NET: Registered protocol family 2 IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 4096 (order: 3, 32768 bytes) TCP bind hash table entries: 4096 (order: 2, 16384 bytes) TCP: Hash tables configured (established 4096 bind 4096) TCP reno registered 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. bcm2708_dma: DMA manager at c8808000 bcm2708_gpio: bcm2708_gpio_probe c03d3d68 vc-mem: Videocore memory driver VFS: Disk quotas dquot_6.5.2 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) FS-Cache: Netfs 'nfs' registered for caching msgmni has been set to 245 io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) BCM2708FB: registering framebuffer (720x480@16) bcm2708_fb_set_par info(c7868000) 720x480 (720x480), 0, 16 BCM2708FB: start = c8900000,49385000 width=720, height=480, bpp=16, pitch=1440 size=691200 success=0 Console: switching to colour frame buffer device 90x30 BCM2708FB: register framebuffer (0) brd: module loaded loop: module loaded vcos: [1]: vchiq_init_state: slot_zero = 0xffd80000, is_master = 0 vcos: [1]: vchiq_init_state: called vcos: [1]: vchiq: initialised - version 2 (min 2), device 253.0 usbcore: registered new interface driver smsc95xx cdc_ncm: 04-Aug-2011 usbcore: registered new interface driver cdc_ncm dwc_otg: version 2.90b 6-MAY-2010 (platform bus) Core Release: 2.80a Setting default values for core params Finished setting default values for core params c8840008 -> 1 Using Buffer DMA mode Periodic Transfer Interrupt Enhancement - disabled Multiprocessor Interrupt Enhancement - disabled Dedicated Tx FIFOs mode dwc_otg bcm2708_usb: DWC OTG Controller dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1 dwc_otg bcm2708_usb: irq 75, io mem 0x00000000 Init: Port Power? op_state=1 Init: Power Port (0) 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: DWC OTG Controller usb usb1: Manufacturer: Linux 3.1.9 dwc_otg_hcd usb usb1: SerialNumber: bcm2708_usb hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected usbcore: registered new interface driver uas Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. usbcore: registered new interface driver libusual mousedev: PS/2 mouse device common for all mice usbcore: registered new interface driver xpad cpuidle: using governor ladder cpuidle: using governor menu sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman bcm_power_open() -> 1 mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77 sdhci-pltfm: SDHCI platform and OF driver helper usbcore: registered new interface driver usbhid usbhid: USB HID core driver TCP cubic registered Initializing XFRM netlink socket NET: Registered protocol family 17 Registering the dns_resolver key type VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5 Waiting for root device /dev/mmcblk0p2... mmc0: new high speed SDHC card at address b368 mmcblk0: mmc0:b368 7.45 GiB mmcblk0: p1 p2 EXT4-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) VFS: Mounted root (ext4 filesystem) on device 179:2. devtmpfs: mounted Freeing init memory: 116K usb 1-1: new high speed USB device number 2 using dwc_otg EXT4-fs (mmcblk0p2): re-mounted. Opts: user_xattr,acl,barrier=1,data=ordered usb 1-1: New USB device found, idVendor=0424, idProduct=9512 usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 hub 1-1:1.0: USB hub found hub 1-1:1.0: 3 ports detected usb 1-1.1: new high speed USB device number 3 using dwc_otg usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00 usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 smsc95xx v1.0.4 smsc95xx 1-1.1:1.0: eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:a6:dc:6e smsc95xx 1-1.1:1.0: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1 øø Welcome to RaspberryPi (none) login: root Password: [root@(none) ~]# uname -a Linux (none) 3.1.9 #1 PREEMPT Sun Jul 1 00:50:23 CEST 2012 armv6l ARMv6-compatible processor rev 7 (v6l) BCM2708 GNU/Linux
Amusez-vous bien ...
Aucun commentaire:
Enregistrer un commentaire