mirror of
https://bitbucket.org/gwenhael/cubietruck-slackware.git
synced 2024-12-26 21:58:20 +01:00
Memory patch
This commit is contained in:
parent
f65cb48ba7
commit
15d40b0dca
2 changed files with 19 additions and 4 deletions
9
build.sh
9
build.sh
|
@ -21,11 +21,12 @@ mkdir -p $DEST/output
|
|||
cp output/uEnv.txt $DEST/output
|
||||
|
||||
git clone https://github.com/cubieboard/u-boot-sunxi $DEST/u-boot-sunxi # Boot loader
|
||||
git clone https://github.com/linux-sunxi/sunxi-tools.git $DEST # Allwinner tools
|
||||
git clone https://github.com/cubieboard/cubie_configs $DEST # Hardware configurations
|
||||
git clone https://github.com/cubieboard/linux-sunxi/ $DEST # Kernel 3.4.61+
|
||||
git clone https://github.com/linux-sunxi/sunxi-tools.git $DEST/sunxi-tools # Allwinner tools
|
||||
git clone https://github.com/cubieboard/cubie_configs $DEST/cubie_configs # Hardware configurations
|
||||
git clone https://github.com/cubieboard/linux-sunxi/ $DEST/linux-sunxi # Kernel 3.4.61+
|
||||
|
||||
# Applying Patch for 2g
|
||||
# Applying Patch for 2gb memory
|
||||
patch -f $DEST/u-boot-sunxi/include/configs/sunxi-common.h < patch/memory.patch
|
||||
|
||||
#Change Video output ( TODO add a param so the user can choose that ?)
|
||||
sed -e 's/output_type = 3/output_type = 4/g' $DEST/cubie_configs/sysconfig/linux/cubietruck.fex > $DEST/cubie_configs/sysconfig/linux/cubietruck-vga.fex
|
||||
|
|
14
patch/memory.patch
Normal file
14
patch/memory.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
--- /tmp/sunxi-common.h 2013-12-29 14:06:42.199693905 +0100
|
||||
+++ include/configs/sunxi-common.h 2013-12-29 14:07:11.395693156 +0100
|
||||
@@ -74,7 +74,11 @@
|
||||
/* A10 has 1 banks of DRAM, we use only bank 1 in U-Boot */
|
||||
#define CONFIG_NR_DRAM_BANKS 1
|
||||
#define PHYS_SDRAM_0 CONFIG_SYS_SDRAM_BASE
|
||||
+#ifdef CONFIG_SUN7I
|
||||
+#define PHYS_SDRAM_0_SIZE 0x80000000
|
||||
+#else
|
||||
#define PHYS_SDRAM_0_SIZE 0x40000000
|
||||
+#endif
|
||||
#if 0
|
||||
/* Nand config */
|
||||
#define CONFIG_NAND
|
Loading…
Reference in a new issue