nard and current rpi kernel (3.18.12+)
Wojtek Mitus
woytekm at gmail.com
Thu May 7 10:46:12 CEST 2015
Hello all,
Finally i've been able to get current rpi kernel to build and boot with
nard. For everyone who wants to try it - here's what i did to make it work:
1. get current kernel (3.18.12+) from raspberry pi github repository. I've
just grabbed https://github.com/raspberrypi/linux/archive/rpi-3.18.y.zip
and repackaged it as linux-rpi-3.18.y.tar.gz
2. put new kernel tarball in nard tree in apps/linux-kernel
3. run make clean for nard
4. switch your project to new kernel version: edit Rules.mk for your
project, and change:
PKGS_APPS += linux-kernel/linux-rpi-3.10.y
to
PKGS_APPS += linux-kernel/linux-rpi-3.18.y
5. replace apps/linux-kernel/Makefile with Makefile attached to this mail.
It essentially adds "LOCALVERSION=" to build and install commands, to get
rid of "+" sign from kernel version string
6. copy attached kernel config to platform/$yourapp/ to use it during nard
build - i tried to use 3.10.y config wchich came with nard (of course make
config asked a lot of additional questions during build), but i couldn't
get it to boot for some reason, so finally i've used raspbian config for
current kernel and tried to strip as much unnecessary stuff from it as i
could/knew - it needs some cleanup, but it works
7. rebuild your project
I'm also attaching bootlog for review.
cheers,
Wojtek
-------------- next part --------------
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.18.12 (root at localhost.localdomain) (gcc version 4.4.5 (crosstool-NG 1.18.0) ) #28 PREEMPT Tue May 5 02:52:11 EDT 2015
[ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine: BCM2708
[ 0.000000] cma: Reserved 8 MiB at 0x1e800000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] On node 0 totalpages: 126976
[ 0.000000] free_area_init_node: node 0, pgdat c07620e8, node_mem_map de414000
[ 0.000000] Normal zone: 992 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 126976 pages, LIFO batch:31
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 125984
[ 0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708.boardrev=0x10 bcm2708.serial=0x391ec48c smsc95xx.macaddr=B8:27:EB:1E:C4:8C bcm2708_fb.fbswap=1 bcm2708.disk_led_gpio=47 bcm2708.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1fa00000 vc_mem.mem_size=0x20000000 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 sdhci-bcm2708.allow_highspeed=0 rw
[ 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: 465056K/507904K available (5438K kernel code, 288K rwdata, 1516K rodata, 300K init, 719K bss, 42848K reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xffe00000 (2048 kB)
[ 0.000000] vmalloc : 0xdf800000 - 0xff000000 ( 504 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xdf000000 ( 496 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc06d2bb8 (6955 kB)
[ 0.000000] .init : 0xc06d3000 - 0xc071e000 ( 300 kB)
[ 0.000000] .data : 0xc071e000 - 0xc0766314 ( 289 kB)
[ 0.000000] .bss : 0xc0766314 - 0xc081a128 ( 720 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:522
[ 0.000021] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483648000ns
[ 0.000071] Switching to timer-based delay loop, resolution 1000ns
[ 0.000368] Console: colour dummy device 80x30
[ 0.001614] console [tty0] enabled
[ 0.001664] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[ 0.001748] pid_max: default: 32768 minimum: 301
[ 0.002154] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.002226] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.003295] Initializing cgroup subsys memory
[ 0.003395] Initializing cgroup subsys devices
[ 0.003458] Initializing cgroup subsys freezer
[ 0.003517] Initializing cgroup subsys net_cls
[ 0.003572] Initializing cgroup subsys blkio
[ 0.003702] CPU: Testing write buffer coherency: ok
[ 0.003824] ftrace: allocating 16006 entries in 47 pages
[ 0.095007] Setting up static identity map for 0x4f4998 - 0x4f49d0
[ 0.097774] devtmpfs: initialized
[ 0.114970] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[ 0.117846] pinctrl core: initialized pinctrl subsystem
[ 0.118793] NET: Registered protocol family 16
[ 0.124003] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[ 0.125505] bcm2708.uart_clock = 3000000
[ 0.125605] of_platform_populate failed: -22
[ 0.128361] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[ 0.128431] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.128500] mailbox: Broadcom VideoCore Mailbox driver
[ 0.128670] bcm2708_vcio: mailbox at f200b880
[ 0.129146] bcm_power: Broadcom power driver
[ 0.129205] bcm_power_open() -> 0
[ 0.129237] bcm_power_request(0, 8)
[ 0.629945] bcm_mailbox_read -> 00000080, 0
[ 0.629996] bcm_power_request -> 0
[ 0.630192] Serial: AMBA PL011 UART driver
[ 0.630428] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev3
[ 0.688332] usbcore: registered new interface driver usbfs
[ 0.688526] usbcore: registered new interface driver hub
[ 0.688684] usbcore: registered new device driver usb
[ 0.690629] Switched to clocksource stc
[ 0.713342] FS-Cache: Loaded
[ 0.713780] CacheFiles: Loaded
[ 0.730148] NET: Registered protocol family 2
[ 0.731765] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.731926] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.732059] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.732185] TCP: reno registered
[ 0.732236] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.732299] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.732633] NET: Registered protocol family 1
[ 0.733235] Trying to unpack rootfs image as initramfs...
[ 3.075039] Freeing initrd memory: 21924K (c1100000 - c2669000)
[ 3.075812] bcm2708_dma: DMA manager at f2007000
[ 3.076038] bcm2708_gpio: bcm2708_gpio_probe c072caf0
[ 3.076649] vc-mem: phys_addr:0x00000000 mem_base=0x1fa00000 mem_size:0x20000000(512 MiB)
[ 3.078264] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 3.078460] audit: initializing netlink subsys (disabled)
[ 3.078595] audit: type=2000 audit(3.000:1): initialized
[ 3.098590] msgmni has been set to 967
[ 3.101470] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 3.101974] io scheduler noop registered
[ 3.102051] io scheduler deadline registered
[ 3.102509] io scheduler cfq registered (default)
[ 3.104509] BCM2708FB: allocated DMA memory 5ec00000
[ 3.104635] BCM2708FB: allocated DMA channel 0 @ f2007000
[ 3.126963] Console: switching to colour frame buffer device 228x61
[ 3.144678] bcm2708-dmaengine bcm2708-dmaengine: Load BCM2835 DMA engine driver
[ 3.145327] uart-pl011 dev:f1: no DMA platform data
[ 3.146290] vc-cma: Videocore CMA driver
[ 3.146435] vc-cma: vc_cma_base = 0x00000000
[ 3.146557] vc-cma: vc_cma_size = 0x00000000 (0 MiB)
[ 3.146685] vc-cma: vc_cma_initial = 0x00000000 (0 MiB)
[ 3.161260] brd: module loaded
[ 3.169190] loop: module loaded
[ 3.169750] vchiq: vchiq_init_state: slot_zero = 0xde800000, is_master = 0
[ 3.171508] usbcore: registered new interface driver smsc95xx
[ 3.171804] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 3.372331] Core Release: 2.80a
[ 3.372479] Setting default values for core params
[ 3.372652] Finished setting default values for core params
[ 3.573002] Using Buffer DMA mode
[ 3.573131] Periodic Transfer Interrupt Enhancement - disabled
[ 3.573275] Multiprocessor Interrupt Enhancement - disabled
[ 3.573414] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 3.573532] Dedicated Tx FIFOs mode
[ 3.574114] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xdec14000 dma = 0x5ec14000 len=9024
[ 3.574375] FIQ FSM acceleration enabled for :
[ 3.574375] Non-periodic Split Transactions
[ 3.574375] Periodic Split Transactions
[ 3.574375] High-Speed Isochronous Endpoints
[ 3.574732] dwc_otg: Microframe scheduler enabled
[ 3.574826] WARN::hcd_init_fiq:412: FIQ on core 0 at 0xc03c2b74
[ 3.574983] WARN::hcd_init_fiq:413: FIQ ASM at 0xc03c2f90 length 36
[ 3.579971] WARN::hcd_init_fiq:438: MPHI regs_base at 0xdf806000
[ 3.584939] dwc_otg bcm2708_usb: DWC OTG Controller
[ 3.589744] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[ 3.594893] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[ 3.599940] Init: Port Power? op_state=1
[ 3.604753] Init: Power Port (0)
[ 3.610045] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 3.615113] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.619986] usb usb1: Product: DWC OTG Controller
[ 3.624827] usb usb1: Manufacturer: Linux 3.18.12 dwc_otg_hcd
[ 3.629723] usb usb1: SerialNumber: bcm2708_usb
[ 3.635798] hub 1-0:1.0: USB hub found
[ 3.640858] hub 1-0:1.0: 1 port detected
[ 3.646470] dwc_otg: FIQ enabled
[ 3.646499] dwc_otg: NAK holdoff enabled
[ 3.646514] dwc_otg: FIQ split-transaction FSM enabled
[ 3.646583] Module dwc_common_port init
[ 3.647325] mousedev: PS/2 mouse device common for all mice
[ 3.653361] bcm2835-cpufreq: min=700000 max=700000
[ 3.658624] sdhci: Secure Digital Host Controller Interface driver
[ 3.663737] sdhci: Copyright(c) Pierre Ossman
[ 3.668846] DMA channels allocated for the MMC driver
[ 3.700815] Load BCM2835 MMC driver
[ 3.710519] sdhci-pltfm: SDHCI platform and OF driver helper
[ 3.716082] ledtrig-cpu: registered to indicate activity on CPUs
[ 3.721339] hidraw: raw HID events driver (C) Jiri Kosina
[ 3.733133] usbcore: registered new interface driver usbhid
[ 3.737940] usbhid: USB HID core driver
[ 3.748733] TCP: cubic registered
[ 3.754733] Initializing XFRM netlink socket
[ 3.759666] NET: Registered protocol family 17
[ 3.768103] Key type dns_resolver registered
[ 3.774831] registered taskstats version 1
[ 3.780035] vc-sm: Videocore shared memory driver
[ 3.784980] [vc_sm_connected_init]: start
[ 3.789987] vc_vchi_sm_init: failed to open VCHI service (-1)
[ 3.790165] [vc_sm_connected_init]: failed to initialize shared memory service
[ 3.799828] [vc_sm_connected_init]: end - returning -1
[ 3.807103] Freeing unused kernel memory: 300K (c06d3000 - c071e000)
[ 3.819125] mmc0: host does not support reading read-only switch, assuming write-enable
[ 3.831074] mmc0: new SDHC card at address b368
[ 3.841109] Indeed it is in host mode hprt0 = 00021501
[ 3.850804] mmcblk0: mmc0:b368 SDC 3.84 GiB
[ 3.853422] mmcblk0: p1 p2
[ 4.071010] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 4.076347] Indeed it is in host mode hprt0 = 00001101
[ 4.311186] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[ 4.316407] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 4.322570] hub 1-1:1.0: USB hub found
[ 4.327898] hub 1-1:1.0: 5 ports detected
[ 4.610848] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 4.731209] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 4.736250] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 4.744398] smsc95xx v1.0.4
[ 4.805486] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:1e:c4:8c
[ 4.890854] usb 1-1.4: new high-speed USB device number 4 using dwc_otg
[ 5.011721] usb 1-1.4: New USB device found, idVendor=0bda, idProduct=8179
[ 5.017145] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5.022312] usb 1-1.4: Product: 802.11n NIC
[ 5.027548] usb 1-1.4: Manufacturer: Realtek
[ 5.032826] usb 1-1.4: SerialNumber: 00E04C0001
[ 5.130838] usb 1-1.5: new full-speed USB device number 5 using dwc_otg
[ 5.260561] usb 1-1.5: New USB device found, idVendor=05ac, idProduct=1003
[ 5.266339] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 5.271675] usb 1-1.5: Product: Hub in Apple Extended USB Keyboard
[ 5.276984] usb 1-1.5: Manufacturer: Mitsumi Electric
[ 5.283711] hub 1-1.5:1.0: USB hub found
[ 5.290909] hub 1-1.5:1.0: 3 ports detected
[ 5.581128] usb 1-1.5.3: new full-speed USB device number 6 using dwc_otg
[ 5.712392] usb 1-1.5.3: New USB device found, idVendor=05ac, idProduct=020c
[ 5.717908] usb 1-1.5.3: New USB device strings: Mfr=1, Product=3, SerialNumber=0
[ 5.725315] usb 1-1.5.3: Product: Apple Extended USB Keyboard
[ 5.735112] usb 1-1.5.3: Manufacturer: Mitsumi Electric
[ 5.793995] input: Mitsumi Electric Apple Extended USB Keyboard as /devices/platform/bcm2708_usb/usb1/1-1/1-1.5/1-1.5.3/1-1.5.3:1.0/0003:05AC:020C.0001/input/input0
[ 5.800538] hid-generic 0003:05AC:020C.0001: input,hidraw0: USB HID v1.10 Keyboard [Mitsumi Electric Apple Extended USB Keyboard] on usb-bcm2708_usb-1.5.3/input0
[ 5.845670] input: Mitsumi Electric Apple Extended USB Keyboard as /devices/platform/bcm2708_usb/usb1/1-1/1-1.5/1-1.5.3/1-1.5.3:1.1/0003:05AC:020C.0002/input/input1
[ 5.852694] hid-generic 0003:05AC:020C.0002: input,hidraw1: USB HID v1.10 Device [Mitsumi Electric Apple Extended USB Keyboard] on usb-bcm2708_usb-1.5.3/input1
[ 9.779999] mmcblk0: p1 p2
[ 11.244116] random: nonblocking pool is initialized
[ 25.325126] bcm2708_rng_init=df88a000
[ 26.171676] bcm2708 watchdog, heartbeat=15 sec (nowayout=0)
[ 26.570135] i2c /dev entries driver
[ 26.598447] bcm2708_i2c_init_pinmode(1,2)
[ 26.598489] bcm2708_i2c_init_pinmode(1,3)
[ 26.602579] pcm512x 1-004d: Failed to reset device: -5
[ 26.607694] pcm512x: probe of 1-004d failed with error -5
[ 26.611740] pcm512x 1-004c: Failed to reset device: -5
[ 26.617029] pcm512x: probe of 1-004c failed with error -5
[ 26.617168] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100000)
[ 26.997100] usbcore: registered new interface driver rtl8192cu
[ 29.353587] bcm2708_spi bcm2708_spi.0: master is unqueued, this is deprecated
[ 29.354493] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80)
[ 32.869751] r8188eu: module is from the staging directory, the quality is unknown, you have been warned.
[ 32.888474] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_A_CUT_1T1R_RomVer(0)
[ 32.922832] usbcore: registered new interface driver r8188eu
[ 33.438491] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 33.693693] cfg80211: Calling CRDA to update world regulatory domain
[ 34.611260] MAC Address = f8:1a:67:20:bc:19
[ 36.056908] R8188EU: ERROR assoc success
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux-rpi-3.18.y.config
Type: application/octet-stream
Size: 82673 bytes
Desc: not available
Url : http://www.arbetsmyra.dyndns.org/pipermail/nard/attachments/20150507/4bc1d259/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 2548 bytes
Desc: not available
Url : http://www.arbetsmyra.dyndns.org/pipermail/nard/attachments/20150507/4bc1d259/attachment-0001.obj
More information about the Nard
mailing list