Skip to content

Instantly share code, notes, and snippets.

View notro's full-sized avatar

Noralf Trønnes notro

View GitHub Profile
@notro
notro / gist:6687345
Created September 24, 2013 16:28
Kernel messages torvalds/linux Linux version 3.12.0-rc1 (pi@raspi1) (gcc version 4.7.1 20120402 (prerelease) (crosstool-NG 1.15.2) ) #2 Tue Sep 24 00:46:31 CEST 2013
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.12.0-rc1 (pi@raspi1) (gcc version 4.7.1 20120402 (prerelease) (crosstool-NG 1.15.2) ) #2 Tue Sep 24 00:46:31 CEST 2013
[ 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: BCM2835, model: Raspberry Pi Model B
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
@notro
notro / gist:6687398
Created September 24, 2013 16:31
Kernel messages raspberrypi/linux 3.10.y
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.12+ (pi@raspi1) (gcc version 4.7.1 20120402 (prerelease) (crosstool-NG 1.15.2) ) #1 Tue Sep 24 09:27:00 CEST 2013
[ 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: BCM2835, model: Raspberry Pi Model B
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
- is zImage
+ is uImage
Uncompressing Linux... done, booting the kernel.
start_kernel()
- setup_machine_fdt(dt_phys=0x100)
+ setup_machine_fdt(dt_phys=0x1BB8A000)
of_scan_flat_dt(early_init_dt_scan_chosen, boot_command_line);
search "chosen", depth: 0, uname:
+ search "chosen", depth: 1, uname: framebuffer
$ tree -A /proc/device-tree/
/proc/device-tree/
+-- #address-cells
+-- aliases
¦ +-- name
+-- chosen
¦ +-- bootargs
¦ +-- name
+-- clocks
¦ +-- #address-cells
U-Boot 2013.10-rc2-15890-gad31ff6 (Sep 22 2013 - 15:12:08)
DRAM: 448 MiB
WARNING: Caches not enabled
MMC: bcm2835_sdhci: 0
Using default environment
In: serial
Out: lcd
Err: lcd
bcm2708.dts
/dts-v1/;
/include/ "skeleton.dtsi"
/ {
compatible = "brcm,bcm2708";
model = "v21 Raspberry Pi Model B";
memreserve = <0x00000000 0x00000000>;
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index a37a50f..2e5e255 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -242,13 +242,13 @@ endif
machdirs := $(patsubst %,arch/arm/mach-%/,$(machine-y))
platdirs := $(patsubst %,arch/arm/plat-%/,$(plat-y))
-ifneq ($(CONFIG_ARCH_MULTIPLATFORM),y)
+#ifneq ($(CONFIG_ARCH_MULTIPLATFORM),y)
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.11.2 (pi@raspi1) (gcc version 4.7.1 20120402 (prerelease) (crosstool-NG 1.15.2) ) #1 Thu Oct 3 17:36:06 CEST 2013
[ 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: BCM2835, model: Raspberry Pi Model B
[ 0.000000] bootconsole [earlycon0] enabled
@notro
notro / gist:6903349
Last active December 25, 2015 02:29
diff --git a/arch/arm/mach-bcm2708/bcm2708.c b/arch/arm/mach-bcm2708/bcm2708.c
index 5662c1a..3cf8793 100644
--- a/arch/arm/mach-bcm2708/bcm2708.c
+++ b/arch/arm/mach-bcm2708/bcm2708.c
@@ -21,7 +21,13 @@
#include <linux/init.h>
#include <linux/device.h>
#include <linux/dma-mapping.h>
+#include <linux/irqdomain.h>
#include <linux/serial_8250.h>
@notro
notro / bcm2708-rpi-b.dts
Created October 19, 2013 17:44
BCM2708 with Device Tree support pr. 2013/10/19
/dts-v1/;
/memreserve/ 0x1c000000 0x04000000;
/*
/include/ "skeleton.dtsi"
*/
/include/ "bcm2708.dtsi"