User Tools

Site Tools


toh:raspberry_pi

Raspberry Pi

The Raspberry Pi is single-board computer without an Ethernet Network Switch. There are many more Single-board computers without one.

OpenWrt for Raspberry Pi is compiled with the ARM soft-float kernel ABI. This means that non-integer math is done in software instead of in hardware. Soft float (armel) is slower than hard float (armhf).

Supported Versions

The Raspberry Pi is supported in the brcm2708 target. Releases with support for this target are:

Release Date Version Download
2015-02-10 Trunk r44403 - Add support for Raspberry Pi 2 / brcm2709 / 2836 https://dev.openwrt.org/changeset/44403
2014-10-02 14.07 Barrier Breaker http://downloads.openwrt.org/barrier_breaker/14.07/brcm2708/generic/
2013-04-25 12.09 Attitude Adjustment http://downloads.openwrt.org/attitude_adjustment/12.09/brcm2708/generic/
2012-07-24 Trunk r32825 - Add support for Raspberry Pi / brcm2708 / 2835 https://dev.openwrt.org/changeset/32825

If you are not sure which file to get, download openwrt-brcm2708-bcm2708-sdcard-vfat-ext4.img

Hardware Specifications

All Versions

Model System-on-Chip CPU Serial JTag Power Connector
Raspberry Pi Broadcom BCM2835 700 MHz ARM11 ARM1176JZF-S via GPIO via GPIO MicroUSB A
Raspberry Pi 2 Broadcom BCM2836 900 MHz ARMv7 Cortex-A7 via GPIO via GPIO MicroUSB A

Model Specific Differences

RPi Model RAM Network USB Memory Card Video Audio Power Requirements GPIO Pins
A 256 MB None 1 USB port SD Card HDMI and Composite RCA 3.5mm Stereo 5V 300mA (see below) 8
B 256 or 512 MB 10M/100M Ethernet RJ45 2 USB ports SD Card HDMI and Composite RCA 3.5mm Stereo 5V 700mA (see below) 8
B+ 512 MB 10M/100M Ethernet RJ45 4 USB ports MicroSD HDMI and shared TRSS 3.5mm Shared TRSS 3.5mm 5V 600mA (see below) 17
RPi 2 Model RAM Network USB Memory Card Video Audio Power Requirements GPIO Pins
B 1024 MB 10M/100M Ethernet RJ45 4 USB ports MicroSD HDMI and shared TRSS 3.5mm Shared TRSS 3.5mm 5V 700mA (see below) 17

Power Notes

The power figures quoted are the bare minimum to run the SoC with no peripherals. Most people find at least a solid 1A is required, especially if adding USB peripherals like keyboard, mouse, or wifi.

A popular power supply is the Apple 12W iPad charger, supplying 5V 2.4A. Similar high-powered mobile phone and tablet chargers should suffice. Using cheap power supplies off eBay is not recommended, as they provide a very uneven and noisy current which can lead to unreliable operation.

It is possible to back-power some Raspberry Pi models from the USB ports, however this is not recommended, as the power in from the USB ports is not protected against surges whereas the main power supply is protected.

It is also possible to supply the required power via the GPIO pins.

Serial

Serial is available via GPIO.

Pin 6 Pin 8 Pin 10
Ground TX RX

Connect via RS232 at 3.3 Volts (not older 12V). 115200 bps 8N1.

Boot Log (Raspberry Pi)

[    0.000000] Booting Linux on physical CPU 0x0                             
[    0.000000] Linux version 3.10.49 (bb@builder1) (gcc version 4.8.3 (OpenWrt/4
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cd
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instrue
[    0.000000] Machine: BCM2708                                              
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pa2
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 t
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 448MB = 448MB total
[    0.000000] Memory: 450360k/450360k available, 8392k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)                
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)                
[    0.000000]     vmalloc : 0xdc800000 - 0xff000000   ( 552 MB)                
[    0.000000]     lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)                
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)                
[    0.000000]       .text : 0xc0008000 - 0xc03b11e8   (3749 kB)                
[    0.000000]       .init : 0xc03b2000 - 0xc03ccb58   ( 107 kB)                
[    0.000000]       .data : 0xc03ce000 - 0xc03f5224   ( 157 kB)                
[    0.000000]        .bss : 0xc03f5224 - 0xc043f018   ( 296 kB)                
[    0.000000] NR_IRQS:330                                                      
[    0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every s
[    0.000000] Switching to timer-based delay loop                              
[    0.000000] Console: colour dummy device 80x30                               
[    0.000000] console [tty1] enabled                                           
[    0.000801] Calibrating delay loop (skipped), value calculated using timer f)
[    0.000849] pid_max: default: 32768 minimum: 301                             
[    0.001000] Mount-cache hash table entries: 512                              
[    0.001649] CPU: Testing write buffer coherency: ok                          
[    0.002002] Setting up static identity map for 0xc000f580 - 0xc000f5dc       
[    0.003098] devtmpfs: initialized                                            
[    0.004505] NET: Registered protocol family 16                               
[    0.009308] DMA: preallocated 4096 KiB pool for atomic coherent allocations  
[    0.010217] bcm2708.uart_clock = 0                                           
[    0.011560] mailbox: Broadcom VideoCore Mailbox driver                       
[    0.011663] bcm2708_vcio: mailbox at f200b880                                
[    0.011760] bcm_power: Broadcom power driver                                 
[    0.011793] bcm_power_open() -> 0                                            
[    0.011814] bcm_power_request(0, 8)                                          
[    0.512517] bcm_mailbox_read -> 00000080, 0                                  
[    0.512551] bcm_power_request -> 0                                           
[    0.512572] Serial: AMBA PL011 UART driver                                   
[    0.512692] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3    
[    0.794598] console [ttyAMA0] enabled                                        
[    0.816767] bio: create slab <bio-0> at 0                                    
[    0.821753] SCSI subsystem initialized                                       
[    0.825778] usbcore: registered new interface driver usbfs                   
[    0.831351] usbcore: registered new interface driver hub                     
[    0.836872] usbcore: registered new device driver usb                        
[    0.843172] Switching to clocksource stc                                     
[    0.858607] NET: Registered protocol family 2                                
[    0.863760] TCP established hash table entries: 4096 (order: 3, 32768 bytes) 
[    0.871007] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)        
[    0.877548] TCP: Hash tables configured (established 4096 bind 4096)         
[    0.883979] TCP: reno registered                                             
[    0.887259] UDP hash table entries: 256 (order: 0, 4096 bytes)               
[    0.893120] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)          
[    0.899727] NET: Registered protocol family 1                                
[    0.904670] bcm2708_dma: DMA manager at f2007000                             
[    0.909467] bcm2708_gpio: bcm2708_gpio_probe c03d7658                        
[    0.914891] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x2000)
[    0.925114] msgmni has been set to 879                                       
[    0.929384] io scheduler noop registered                                     
[    0.933328] io scheduler deadline registered                                 
[    0.937706] io scheduler cfq registered (default)                            
[    0.942749] BCM2708FB: allocated DMA memory 5b8f0000                         
[    0.947793] BCM2708FB: allocated DMA channel 0 @ f2007000                    
[    0.968022] Console: switching to colour frame buffer device 82x26           
[    0.985885] brd: module loaded                                               
[    0.994450] loop: module loaded                                              
[    0.999252] vchiq: vchiq_init_state: slot_zero = 0xdc804000, is_master = 0   
[    1.008683] usbcore: registered new interface driver smsc95xx                
[    1.015985] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)                
[    1.223509] Core Release: 2.80a                                              
[    1.228015] Setting default values for core params                           
[    1.234095] Finished setting default values for core params                  
[    1.440991] Using Buffer DMA mode                                            
[    1.445566] Periodic Transfer Interrupt Enhancement - disabled               
[    1.452673] Multiprocessor Interrupt Enhancement - disabled                  
[    1.459544] OTG VER PARAM: 0, OTG VER FLAG: 0                                
[    1.465147] Dedicated Tx FIFOs mode                                          
[    1.470077] dwc_otg bcm2708_usb: DWC OTG Controller                          
[    1.476241] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number1
[    1.484802] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000                   
[    1.491611] Init: Port Power? op_state=1                                     
[    1.496808] Init: Power Port (0)                                             
[    1.501399] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002    
[    1.509565] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber1
[    1.518134] usb usb1: Product: DWC OTG Controller                            
[    1.524126] usb usb1: Manufacturer: Linux 3.10.49 dwc_otg_hcd                
[    1.531208] usb usb1: SerialNumber: bcm2708_usb                              
[    1.537904] hub 1-0:1.0: USB hub found                                       
[    1.542992] hub 1-0:1.0: 1 port detected                                     
[    1.549016] usbcore: registered new interface driver usb-storage             
[    1.556629] mousedev: PS/2 mouse device common for all mice                  
[    1.563744] bcm2708 watchdog, heartbeat=10 sec (nowayout=0)                  
[    1.570640] cpuidle: using governor ladder                                   
[    1.575966] cpuidle: using governor menu                                     
[    1.581163] sdhci: Secure Digital Host Controller Interface driver           
[    1.588584] sdhci: Copyright(c) Pierre Ossman                                
[    1.594239] sdhci: Enable low-latency mode                                   
[    1.637235] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platfoA
[    1.647538] mmc0: BCM2708 SDHC host at 0x20300000 DMA 4 IRQ 20               
[    1.654714] sdhci-pltfm: SDHCI platform and OF driver helper                 
[    1.662416] TCP: cubic registered                                            
[    1.667060] NET: Registered protocol family 17                               
[    1.672935] Bridge firewalling registered                                    
[    1.678282] 8021q: 802.1Q VLAN Support v1.8                                  
[    1.684128] VFP support v0.3: implementor 41 architecture 1 part 20 variant 5
[    1.698080] Waiting for root device /dev/mmcblk0p2...                        
[    1.758216] mmc0: new high speed SDHC card at address 1234                   
[    1.765590] mmcblk0: mmc0:1234 SA08G 7.42 GiB                                
[    1.773092]  mmcblk0: p1 p2                                                  
[    1.787350] Indeed it is in host mode hprt0 = 00021501                       
[    1.862232] EXT4-fs (mmcblk0p2): warning: mounting unchecked fs, running e2fd
[    1.967263] usb 1-1: new high-speed USB device number 2 using dwc_otg        
[    1.975378] Indeed it is in host mode hprt0 = 00001101                       
[    2.177748] usb 1-1: New USB device found, idVendor=0424, idProduct=9512     
[    2.186068] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.195781] hub 1-1:1.0: USB hub found                                       
[    2.201246] hub 1-1:1.0: 3 ports detected                                    
[    2.324804] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: ()
[    2.335324] VFS: Mounted root (ext4 filesystem) on device 179:2.             
[    2.343267] Freeing unused kernel memory: 104K (c03b2000 - c03cc000)         
[    2.487484] usb 1-1.1: new high-speed USB device number 3 using dwc_otg      
[    2.608106] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00   
[    2.616581] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumbe0
[    2.628987] smsc95xx v1.0.4                                                  
[    2.693675] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-0
[    6.303384] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)                    
�Please press Enter to activate this console.                                   
[    8.359868] NET: Registered protocol family 10                               
[    8.397049] nf_conntrack version 0.5.0 (7038 buckets, 28152 max)             
[    8.409659] ip6_tables: (C) 2000-2006 Netfilter Core Team                    
[    8.429746] hidraw: raw HID events driver (C) Jiri Kosina                    
[    8.456242] ip_tables: (C) 2000-2006 Netfilter Core Team                     
[    8.481873] usbcore: registered new interface driver usbhid                  
[    8.488924] usbhid: USB HID core driver                                      
[    8.511230] xt_time: kernel timezone is -0000                                
[    8.524035] PPP generic driver version 2.4.2                                 
[    8.532162] NET: Registered protocol family 24                               
[   11.991982] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup 
[   12.001171] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready               
[   12.040476] device eth0 entered promiscuous mode                             
[   12.053357] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready             
[   13.511063] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x411
[   13.529699] br-lan: port 1(eth0) entered forwarding state                    
[   13.536589] br-lan: port 1(eth0) entered forwarding state                    
[   13.543534] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready          
[   13.553417] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready        
[   15.527221] br-lan: port 1(eth0) entered forwarding state

Boot Log (Raspberry Pi 2)

[    0.000000] Booting Linux on physical CPU 0xf00
[    0.000000] Linux version 3.18.6-v7 (noltari@skynet) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r44379) ) #1 SMP Wed Feb 11 05:49:12 CET 2015
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: BCM2709
[    0.000000] cma: Reserved 16 MiB at 0x3a000000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] [bcm2709_smp_init_cpus] enter (8520->f3003010)
[    0.000000] [bcm2709_smp_init_cpus] ncores=4
[    0.000000] PERCPU: Embedded 9 pages/cpu @b9866000 s7296 r8192 d21376 u36864
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 239776
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2709.boardrev=0xa01041 bcm2709.serial=0x2ce5d0af smsc95xx.macaddr=B8:27:EB:E5:D0:AF bcm2708_fb.fbswap=1 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000  dwc_otg.lpm_enable=0 rpitestmode=1 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 936804K/966656K available (3253K kernel code, 213K rwdata, 896K rodata, 168K init, 355K bss, 29852K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xbb800000 - 0xff000000   (1080 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xbb000000   ( 944 MB)
[    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)
[    0.000000]       .text : 0x80008000 - 0x80415674   (4150 kB)
[    0.000000]       .init : 0x80416000 - 0x80440000   ( 168 kB)
[    0.000000]       .data : 0x80440000 - 0x80475488   ( 214 kB)
[    0.000000]        .bss : 0x80475488 - 0x804ce338   ( 356 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:480
[    0.000000] Architected cp15 timer(s) running at 19.20MHz (virt).
[    0.000014] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 3579139424256ns
[    0.000034] Switching to timer-based delay loop, resolution 52ns
[    0.000515] Console: colour dummy device 80x30
[    0.001035] console [tty1] enabled
[    0.001068] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.001113] pid_max: default: 32768 minimum: 301
[    0.001451] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001483] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002390] CPU: Testing write buffer coherency: ok
[    0.002807] CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00
[    0.002837] [bcm2709_smp_prepare_cpus] enter
[    0.002956] Setting up static identity map for 0x126e8 - 0x12740
[    0.004741] [bcm2709_boot_secondary] cpu:1 started (0) 16
[    0.004994] CPU1: Booted secondary processor
[    0.005000] [bcm2709_secondary_init] enter cpu:1
[    0.005045] CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01
[    0.005524] [bcm2709_boot_secondary] cpu:2 started (0) 18
[    0.005724] CPU2: Booted secondary processor
[    0.005729] [bcm2709_secondary_init] enter cpu:2
[    0.005759] CPU2: thread -1, cpu 2, socket 15, mpidr 80000f02
[    0.006193] [bcm2709_boot_secondary] cpu:3 started (0) 18
[    0.006370] CPU3: Booted secondary processor
[    0.006375] [bcm2709_secondary_init] enter cpu:3
[    0.006402] CPU3: thread -1, cpu 3, socket 15, mpidr 80000f03
[    0.006477] Brought up 4 CPUs
[    0.006542] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.006563] CPU: All CPU(s) started in SVC mode.
[    0.007252] devtmpfs: initialized
[    0.025372] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.027083] NET: Registered protocol family 16
[    0.032716] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.060100] cpuidle: using governor ladder
[    0.090123] cpuidle: using governor menu
[    0.090548] bcm2709.uart_clock = 3000000
[    0.091945] mailbox: Broadcom VideoCore Mailbox driver
[    0.092032] bcm2708_vcio: mailbox at f300b880
[    0.092332] bcm_power: Broadcom power driver
[    0.092358] bcm_power_open() -> 0
[    0.092376] bcm_power_request(0, 8)
[    0.593063] bcm_mailbox_read -> 00000080, 0
[    0.593085] bcm_power_request -> 0
[    0.593225] Serial: AMBA PL011 UART driver
[    0.593343] dev:f1: ttyAMA0 at MMIO 0x3f201000 (irq = 83, base_baud = 0) is a PL011 rev3
[    1.025073] console [ttyAMA0] enabled
[    1.086899] SCSI subsystem initialized
[    1.090846] usbcore: registered new interface driver usbfs
[    1.096429] usbcore: registered new interface driver hub
[    1.101830] usbcore: registered new device driver usb
[    1.108378] Switched to clocksource arch_sys_counter
[    1.123105] NET: Registered protocol family 2
[    1.128304] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    1.135500] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    1.142141] TCP: Hash tables configured (established 8192 bind 8192)
[    1.148607] TCP: reno registered
[    1.151849] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    1.157819] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    1.164507] NET: Registered protocol family 1
[    1.169474] bcm2708_dma: DMA manager at f3007000
[    1.174209] bcm2708_gpio: bcm2708_gpio_probe 8045f2e0
[    1.179782] vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000000(1008 MiB)
[    1.189350] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    1.196776] msgmni has been set to 1861
[    1.201350] io scheduler noop registered
[    1.205291] io scheduler deadline registered
[    1.209600] io scheduler cfq registered (default)
[    1.215556] BCM2708FB: allocated DMA memory fa400000
[    1.220579] BCM2708FB: allocated DMA channel 0 @ f3007000
[    1.232046] Console: switching to colour frame buffer device 82x26
[    1.243767] bcm2708-dmaengine bcm2708-dmaengine: Load BCM2835 DMA engine driver
[    1.252846] uart-pl011 dev:f1: no DMA platform data
[    1.259468] vc-cma: Videocore CMA driver
[    1.264826] vc-cma: vc_cma_base      = 0x00000000
[    1.270955] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.277725] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.293148] brd: module loaded
[    1.301922] loop: module loaded
[    1.306598] vchiq: vchiq_init_state: slot_zero = 0xba000000, is_master = 0
[    1.315775] usbcore: registered new interface driver smsc95xx
[    1.322993] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.530327] Core Release: 2.80a
[    1.534741] Setting default values for core params
[    1.540835] Finished setting default values for core params
[    1.747987] Using Buffer DMA mode
[    1.752565] Periodic Transfer Interrupt Enhancement - disabled
[    1.759723] Multiprocessor Interrupt Enhancement - disabled
[    1.766632] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.772337] Dedicated Tx FIFOs mode
[    1.777495] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xba414000 dma = 0xfa414000 len=9024
[    1.790123] FIQ FSM acceleration enabled for :
[    1.790123] Non-periodic Split Transactions
[    1.790123] Periodic Split Transactions
[    1.790123] High-Speed Isochronous Endpoints
[    1.812217] WARN::hcd_init_fiq:412: FIQ on core 1 at 0x80246758
[    1.819571] WARN::hcd_init_fiq:413: FIQ ASM at 0x8000d5a8 length 36
[    1.827249] WARN::hcd_init_fiq:438: MPHI regs_base at 0xbb806000
[    1.834685] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.841016] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.849707] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.856612] Init: Port Power? op_state=1
[    1.861903] Init: Power Port (0)
[    1.866692] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.874898] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.883523] usb usb1: Product: DWC OTG Controller
[    1.889604] usb usb1: Manufacturer: Linux 3.18.6-v7 dwc_otg_hcd
[    1.896891] usb usb1: SerialNumber: bcm2708_usb
[    1.903597] hub 1-0:1.0: USB hub found
[    1.908768] hub 1-0:1.0: 1 port detected
[    1.914740] usbcore: registered new interface driver uas
[    1.921474] usbcore: registered new interface driver usb-storage
[    1.928954] mousedev: PS/2 mouse device common for all mice
[    1.935921] bcm2708 watchdog, heartbeat=10 sec (nowayout=0)
[    1.942862] sdhci: Secure Digital Host Controller Interface driver
[    1.950371] sdhci: Copyright(c) Pierre Ossman
[    1.956152] DMA channels allocated for the MMC driver
[    1.998392] Load BCM2835 MMC driver
[    2.007731] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.015336] TCP: cubic registered
[    2.021021] NET: Registered protocol family 17
[    2.027892] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    2.045301] 8021q: 802.1Q VLAN Support v1.8
[    2.055399] Registering SWP/SWPB emulation handler
[    2.062464] vc-sm: Videocore shared memory driver
[    2.068588] [vc_sm_connected_init]: start
[    2.075499] [vc_sm_connected_init]: end - returning 0
[    2.082521] Waiting for root device /dev/mmcblk0p2...
[    2.096321] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.108489] Indeed it is in host mode hprt0 = 00021501
[    2.109504] mmc0: new high speed SD card at address b368
[    2.109941] mmcblk0: mmc0:b368 SMI   121 MiB 
[    2.123103]  mmcblk0: p1 p2
[    2.203606] EXT4-fs (mmcblk0p2): warning: mounting unchecked fs, running e2fsck is recommended
[    2.231261] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (null)
[    2.241906] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.249811] Freeing unused kernel memory: 168K (80416000 - 80440000)
[    2.308468] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.316756] Indeed it is in host mode hprt0 = 00001101
[    2.518697] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    2.527063] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.536653] hub 1-1:1.0: USB hub found
[    2.542164] hub 1-1:1.0: 5 ports detected
[    2.828459] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.948631] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.957097] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.968730] smsc95xx v1.0.4
[    3.031489] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:e5:d0:af
[    3.414970] random: mktemp urandom read with 71 bits of entropy available
[    6.504878] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
øøPlease press Enter to activate this console.
[   10.590730] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   10.605472] device eth0 entered promiscuous mode
[   20.672522] random: nonblocking pool is initialized

How to flash OpenWrt to an SD card

On a Linux desktop, insert your SD card and run:

dmesg

to see the latest kernel messages.

The most recent message should give you the SD card's device name, such as sdb or sdf or similar.

Download the relevant openwrt-brcm2708-bcm2708-sdcard-vfat-ext4.img or openwrt-brcm2708-bcm2709-sdcard-vfat-ext4.img image.

As the root user, use dd to copy the image file to the device you identified previously, for example:

Raspberry Pi

dd if=/home/username/Downloads/openwrt-brcm2708-bcm2708-sdcard-vfat-ext4.img of=/dev/sdX bs=2M conv=fsync

Raspberry Pi 2

dd if=/home/username/Downloads/openwrt-brcm2708-bcm2709-sdcard-vfat-ext4.img of=/dev/sdX bs=2M conv=fsync

Replace the sdX with your device name, such as sdb or sdf.

On a Windows desktop, use Win32DiskImager to copy the img file to your SD card's drive letter.

How to connect via Ethernet

After having flashed OpenWrt like described above, you cannot reach the Raspberry Pi via Ethernet because it is not set up as a DHCP client by default. (Is this a bug?)

In order to set it up as a DHCP client, attach a serial console and do the following:

uci set network.lan.proto=dhcp
uci commit
/etc/init.d/network restart

Now you should be able to log in via telnet and/or http in order to set your password.

Resources

Tags

toh/raspberry_pi.txt · Last modified: 2015/06/06 14:27 by probono