linux: added unstable version 3.13-rc7.

This commit is contained in:
Ricardo Martins 2014-01-07 16:05:10 +00:00
parent 61867d7f74
commit e707a403cc
7 changed files with 2613 additions and 18 deletions

View File

@ -5,6 +5,10 @@ post_unpack()
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi
if [ -d "$cfg_dir_toolchain/firmware" ]; then
tar -C "$cfg_dir_toolchain/firmware" -c -v -f - . | tar -C firmware -x -v -f -
fi
}
refresh()
@ -21,7 +25,9 @@ configure()
$cmd_make \
ARCH=${cfg_target_linux} \
mrproper &&
cp "$cfg_dir_system/cfg/linux-${version}.cfg" .config &&
yes '' | $cmd_make \
CROSS_COMPILE=${cfg_target_canonical}- \
ARCH=${cfg_target_linux} \
@ -49,6 +55,22 @@ build()
uImage
fi
# Compressed image.
if [ "$(basename $cfg_target_linux_kernel)" = 'zImage' ]; then
$cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux \
zImage
fi
# Device tree blob.
if [ -n "$cfg_target_linux_dtb" ]; then
$cmd_make \
CROSS_COMPILE=$cfg_target_canonical- \
ARCH=$cfg_target_linux \
dtbs
fi
if [ -n "${cfg_target_linux_size}" ]; then
dd if="$cfg_target_linux_kernel" of="${cfg_target_linux_kernel}.padded" \
ibs="${cfg_target_linux_size}" conv=sync &&
@ -65,17 +87,15 @@ target_install()
$strip -s -R .comment "$cfg_target_linux_kernel"
fi
case "$cfg_target_linux_kernel_compress" in
gzip)
gzip "$cfg_target_linux_kernel" -c > "$kernel"
;;
*)
# Kernel image.
if [ -n "$cfg_target_linux_kernel" ]; then
cp -v "$cfg_target_linux_kernel" "$kernel"
;;
esac
cp -v "$cfg_target_linux_kernel" "$cfg_dir_rootfs/boot/kernel"
fi
if [ -z "$cfg_target_linux_kernel_standalone" ]; then
cp "$kernel" $cfg_dir_rootfs/boot/kernel
# Device tree blob.
if [ -n "$cfg_target_linux_dtb" ]; then
cp -v "$cfg_target_linux_dtb" "$cfg_dir_rootfs/boot/board.dtb"
fi
$cmd_make \

View File

@ -0,0 +1,27 @@
source "$PKG_COMMON"
version=\
(
'3.13-rc7'
)
url=\
(
"https://www.kernel.org/pub/linux/kernel/v3.x/testing/linux-$version.tar.xz"
)
md5=\
(
'a9de953c724974f8842328c4f41ec255'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
requires=\
(
'u-boot'
'kmod/host'
)

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +1,12 @@
cfg_architecture='cortex-a8'
cfg_storage='data0:ext4:/opt data1:ext4:/opt/lsts/dune/log'
cfg_storage='data0:ext4:/opt'
cfg_modules=''
cfg_services0='network dropbear storage upgrade syslog ptpd bbb-mux'
cfg_services0='network dropbear storage upgrade syslog ptpd'
cfg_services2='dune'
cfg_packages='dropbear rsync busybox e2fsprogs ptpd i2c-tools linux/am335x-evm'
cfg_target_linux_kernel='arch/arm/boot/uImage'
cfg_target_uboot_config='am335x_evm'
cfg_packages='dropbear rsync busybox e2fsprogs ptpd i2c-tools am33xx-cm3/host linux/unstable'
cfg_target_linux_kernel='arch/arm/boot/zImage'
cfg_target_linux_dtb='arch/arm/boot/dts/am335x-boneblack.dtb'
cfg_target_uboot_config='am335x_bbb'
cfg_ptpd_interface='eth0'
cfg_terminal='ttyO0'
cfg_partitions=\

View File

@ -1,3 +0,0 @@
bootfile=/boot/kernel
mmcrootfstype=ext2 rootwait uboot=ext2
mmcargs=setenv bootargs console=${console} root=${mmcroot} rootfstype=${mmcrootfstype} quiet

View File

@ -0,0 +1,43 @@
diff --git a/arch/arm/boot/dts/am335x-boneblack.dts b/arch/arm/boot/dts/am335x-boneblack.dts
index 6b71ad9..0299c79 100644
--- a/arch/arm/boot/dts/am335x-boneblack.dts
+++ b/arch/arm/boot/dts/am335x-boneblack.dts
@@ -60,6 +60,17 @@
0x1b0 0x03 /* xdma_event_intr0, OMAP_MUX_MODE3 | AM33XX_PIN_OUTPUT */
>;
};
+
+ gps_pps_pins: gps_pps_pins {
+ pinctrl-single,pins = <0x90 (PIN_INPUT_PULLDOWN | MUX_MODE7)>;
+ };
+
+ uart1_pins: pinmux_uart1_pins {
+ pinctrl-single,pins = <
+ 0x180 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart1_rxd.uart1_rxd */
+ 0x184 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart1_txd.uart1_txd */
+ >;
+ };
};
&lcdc {
@@ -75,4 +86,19 @@
pinctrl-1 = <&nxp_hdmi_bonelt_off_pins>;
status = "okay";
};
+
+ pps {
+ compatible = "pps-gpio";
+ status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&gps_pps_pins>;
+ gpios = <&gpio2 2 0>;
+ assert-rising-edge;
+ };
};
+
+&uart1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart1_pins>;
+ status = "okay";
+};
\ No newline at end of file