Skip to content

Commit baa4187

Browse files
Merge branch 'arc-dev' into arc-staging
2 parents 7f61900 + 8019d6d commit baa4187

File tree

4 files changed

+47
-4
lines changed

4 files changed

+47
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ Latest stable release from https://kernel.org/ is recommended, and only
8585
versions >= 3.9 are supported. Linux sources should be located in the directory
8686
named `linux` that is the sibling of this `toolchain` directory. For example:
8787

88-
$ wget https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.7.2.tar.xz
89-
$ tar xaf linux-4.7.2.tar.xz --transform=s/linux-4.7.2/linux/
88+
$ wget https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.8.2.tar.xz
89+
$ tar xaf linux-4.8.2.tar.xz --transform=s/linux-4.8.2/linux/
9090

9191
### Using Git repositories
9292

@@ -127,7 +127,7 @@ config/arc-dev.sh file, which at the moment of this writing are:
127127
* gdb - arc-2016.09-gdb
128128
* newlib - arc-2016.09
129129
* uClibc - arc-2016.09
130-
* Linux - linux-4.7.y
130+
* Linux - linux-4.8.y
131131

132132
Note, however that if `build-all.sh` will try to checkout repositories to their
133133
latest state, which is a default behaviour, then it will anyway fetch

build-uclibc.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,8 +666,16 @@ if [ $DO_NATIVE_GDB = yes ]; then
666666

667667
build_dir_init native_gdb
668668

669+
# Due to STAR 9001066513 GDB crashes when throwing an exception. Due to a
670+
# poor design GDB uses exceptions as a part of a normal execution flow to
671+
# verify user input (for example it throws exception when file path is
672+
# invalid or when typed symbol doesn't exist). Therefore for 2016.09
673+
# release it is required to disable build of GDB as a C++ application.
674+
# This will not work for future releases, because GDB will stop supporting
675+
# C builds.
669676
config_path=$(calcConfigPath "${ARC_GNU}")/gdb
670677
configure_for_arc "$config_path" $triplet \
678+
--disable-build-with-cxx \
671679
--disable-gas --disable-ld --disable-binutils
672680
make_target building
673681

@@ -681,6 +689,7 @@ else
681689
build_dir_init gdbserver
682690
# Static options are same as when gdbserver is configured by the top-level
683691
# configure script.
692+
# See commment for native GDB about build-with-cxx.
684693
config_path=$(calcConfigPath "${ARC_GNU}")/gdb/gdb/gdbserver
685694
LDFLAGS="-static-libstdc++ -static-libgcc" \
686695
configure_for_arc "$config_path" $triplet --disable-build-with-cxx

config/arc-dev.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ gcc=gcc:arc-6.x-dev
33
gdb=gdb:arc-2016.09-gdb
44
newlib=newlib:arc-2016.09
55
uclibc=uClibc:arc-2016.09
6-
linux=linux:linux-4.7.y
6+
linux=linux:linux-4.8.y

doc/linux/kernel-build.rst

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,15 @@ Prerequisites
1717
-------------
1818

1919
* Host OS:
20+
2021
* RHEL 6 or later
2122
* Ubuntu 14.04 LTS or later
23+
2224
* GNU tool chain for ARC:
25+
2326
* 2014.12 or later for Linux for ARC HS
2427
* 4.8 or later for Linux for ARC 700
28+
2529
* make version at least 3.81
2630
* rsync version at least 3.0
2731
* git
@@ -303,3 +307,33 @@ Now it is possible to mount some NFS share and run applications from it::
303307
[arclinux] # mount -t nfs public-nfs:/home/arc_user/pub /mnt
304308
[arclinux] # /mnt/hello_world
305309

310+
311+
Linux for AXS103 SDP
312+
--------------------
313+
314+
Build process using Buildroot is the same as for standalone nSIM. Buildroot
315+
defconfig is::
316+
317+
BR2_arcle=y
318+
BR2_archs38=y
319+
BR2_TOOLCHAIN_EXTERNAL=y
320+
BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
321+
BR2_TOOLCHAIN_EXTERNAL_URL="http://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/download/arc-2016.09/arc_gnu_2016.09_prebuilt_uclibc_le_archs_linux_install.tar.gz"
322+
BR2_TOOLCHAIN_EXTERNAL_GCC_6=y
323+
BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_8=y
324+
BR2_TOOLCHAIN_EXTERNAL_LOCALE=y
325+
BR2_TOOLCHAIN_EXTERNAL_HAS_SSP=y
326+
BR2_TOOLCHAIN_EXTERNAL_INET_RPC=y
327+
BR2_TOOLCHAIN_EXTERNAL_CXX=y
328+
BR2_LINUX_KERNEL=y
329+
BR2_LINUX_KERNEL_DEFCONFIG="axs103_smp"
330+
BR2_PACKAGE_GDB=y
331+
BR2_PACKAGE_GDB_SERVER=y
332+
BR2_PACKAGE_GDB_DEBUGGER=y
333+
BR2_TARGET_ROOTFS_INITRAMFS=y
334+
# BR2_TARGET_ROOTFS_TAR is not set
335+
336+
This defconfig will create a uImage file instead of vmlinux. Please refer to
337+
`ARC Linux wiki
338+
<https://github.com/foss-for-synopsys-dwc-arc-processors/linux/wiki/Getting-Started-with-Linux-on-ARC-AXS103-Software-Development-Platform-(SDP)>`
339+
for more details on using u-boot with AXS103.

0 commit comments

Comments
 (0)