diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2017-10-06 07:59:00 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2017-10-06 08:02:08 +0200 |
commit | 292e4773624948818c23ca682ea1fc02bdffaab0 (patch) | |
tree | 5b0ad5bc93fb109fc3cc0df4a69a0a657e6ff337 /target/linux | |
parent | d80594100af21feb7ff66d60f308c02a4e609810 (diff) |
nds32: update toolchain and kernel
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/config/Config.in.block | 5 | ||||
-rw-r--r-- | target/linux/config/Config.in.fs | 1 | ||||
-rw-r--r-- | target/linux/config/Config.in.serial | 1 | ||||
-rw-r--r-- | target/linux/kernel.config | 1 | ||||
-rw-r--r-- | target/linux/patches/3.10-nds32/nfsroot-cmdline.patch | 30 |
5 files changed, 36 insertions, 2 deletions
diff --git a/target/linux/config/Config.in.block b/target/linux/config/Config.in.block index 758abeaa3..322b9172e 100644 --- a/target/linux/config/Config.in.block +++ b/target/linux/config/Config.in.block @@ -3,6 +3,11 @@ config ADK_KERNEL_BLOCK bool + select ADK_KERNEL_AIO + select ADK_KERNEL_INOTIFY_USER + +config ADK_KERNEL_AIO + bool menu "Block devices support" depends on ADK_TARGET_WITH_BLOCK \ diff --git a/target/linux/config/Config.in.fs b/target/linux/config/Config.in.fs index 36422c1e9..956a0fb21 100644 --- a/target/linux/config/Config.in.fs +++ b/target/linux/config/Config.in.fs @@ -16,7 +16,6 @@ config ADK_KERNEL_FSNOTIFY config ADK_KERNEL_INOTIFY_USER bool - default y config ADK_KERNEL_AUTOFS4_FS bool diff --git a/target/linux/config/Config.in.serial b/target/linux/config/Config.in.serial index 6f3510879..d8546b041 100644 --- a/target/linux/config/Config.in.serial +++ b/target/linux/config/Config.in.serial @@ -92,6 +92,7 @@ config ADK_KERNEL_SERIAL_8250 || ADK_TARGET_SYSTEM_QEMU_MICROBLAZE_ML605 \ || ADK_TARGET_SYSTEM_QEMU_NIOS2 \ || ADK_TARGET_SYSTEM_QEMU_OR1K \ + || ADK_TARGET_SYSTEM_ANDES_AG101P \ || ADK_TARGET_SYSTEM_ORANGE_PI0 \ || ADK_TARGET_SYSTEM_SOM_C6745 select ADK_KERNEL_SERIAL_8250_PNP if ADK_TARGET_SYSTEM_PCENGINES_APU diff --git a/target/linux/kernel.config b/target/linux/kernel.config index 7be2f40ed..8d7f9fda2 100644 --- a/target/linux/kernel.config +++ b/target/linux/kernel.config @@ -18,7 +18,6 @@ CONFIG_SIGNALFD=y CONFIG_TIMERFD=y CONFIG_EVENTFD=y CONFIG_SHMEM=y -CONFIG_AIO=y CONFIG_TTY=y CONFIG_UNIX98_PTYS=y CONFIG_DEVMEM=y diff --git a/target/linux/patches/3.10-nds32/nfsroot-cmdline.patch b/target/linux/patches/3.10-nds32/nfsroot-cmdline.patch new file mode 100644 index 000000000..b6982c8d2 --- /dev/null +++ b/target/linux/patches/3.10-nds32/nfsroot-cmdline.patch @@ -0,0 +1,30 @@ +diff -Nur linux-3.10-nds32.orig/arch/nds32/boot/dts/ag101p.dts linux-3.10-nds32/arch/nds32/boot/dts/ag101p.dts +--- linux-3.10-nds32.orig/arch/nds32/boot/dts/ag101p.dts 2017-07-31 07:41:18.000000000 +0200 ++++ linux-3.10-nds32/arch/nds32/boot/dts/ag101p.dts 2017-10-03 09:56:16.654394267 +0200 +@@ -7,7 +7,7 @@ + + chosen { + /* bootargs = "console=ttyS0,38400n8 earlyprintk=uart8250-32bit,0x99600000 debug bootmem_debug memblock=debug loglevel=7"; */ +- bootargs = "console=ttyS0,38400n8 earlyprintk=uart8250-32bit,0x99600000 debug loglevel=7"; ++ bootargs = "console=ttyS0,38400n8 earlyprintk=uart8250-32bit,0x99600000 debug loglevel=7 rw root=/dev/nfs ip=dhcp"; + }; + + memory@0 { +diff -Nur linux-3.10-nds32.orig/include/linux/etherdevice.h linux-3.10-nds32/include/linux/etherdevice.h +--- linux-3.10-nds32.orig/include/linux/etherdevice.h 2016-09-06 11:38:23.000000000 +0200 ++++ linux-3.10-nds32/include/linux/etherdevice.h 2017-10-06 07:28:40.004142545 +0200 +@@ -154,7 +154,13 @@ + */ + static inline void eth_random_addr(u8 *addr) + { +- get_random_bytes(addr, ETH_ALEN); ++ //get_random_bytes(addr, ETH_ALEN); ++ addr[0] = 0xB8; ++ addr[1] = 0x27; ++ addr[2] = 0xEB; ++ addr[3] = 0x91; ++ addr[4] = 0x8F; ++ addr[5] = 0xAA; + addr[0] &= 0xfe; /* clear multicast bit */ + addr[0] |= 0x02; /* set local assignment bit (IEEE802) */ + } |