├── patches ├── mcookie ├── hello.c ├── startchroot ├── startX ├── directfbrc ├── makelibtool ├── libgcc_s.la ├── libz.la ├── MesaLib-9.1-no_ranlib.patch ├── or1ksim.dts ├── raytracer.bc ├── freetype_example.c ├── CONFIG_UCLIBC ├── mke2img.c ├── or1k-linux-uclibc-sim.exp ├── or1ksim.cfg ├── CONFIG_BUSYBOX └── CONFIG_LINUX ├── scripts ├── misc.make ├── fetch.make ├── image.make ├── build.make ├── progs.make ├── toolchain.make └── X.make ├── README.md └── Makefile /patches/mcookie: -------------------------------------------------------------------------------- 1 | echo $(od -N 16 -t x4 /dev/urandom | awk '{print $2$3$4$5}') 2 | 3 | -------------------------------------------------------------------------------- /patches/hello.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() 4 | { 5 | printf("Hello world\n"); 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /patches/startchroot: -------------------------------------------------------------------------------- 1 | mount -t proc none /mnt/proc 2 | mount --rbind /sys /mnt/sys 3 | mount --rbind /dev /mnt/dev 4 | chroot /mnt 5 | 6 | -------------------------------------------------------------------------------- /patches/startX: -------------------------------------------------------------------------------- 1 | Xfbdev :0 -wr -ac -noreset -fp /usr/share/fonts/X11/75dpi -nolisten inet6 -fb /dev/fb0 -screen 640x400 -dpi 170 & 2 | 3 | 4 | -------------------------------------------------------------------------------- /patches/directfbrc: -------------------------------------------------------------------------------- 1 | system=fbdev 2 | fbdev=/dev/fb0 3 | no-sighandler 4 | #debug 5 | #debugmem 6 | #debugshm 7 | #trace 8 | #log-file=dfb_log 9 | #mouse-source=/dev/input/mice? 10 | #mouse-protocol=MS? 11 | 12 | -------------------------------------------------------------------------------- /scripts/misc.make: -------------------------------------------------------------------------------- 1 | startqemueasy: 2 | qemu-system-or32 -nographic -kernel src/linux/vmlinux 3 | 4 | startqemu: 5 | qemu-system-or32 -nographic -kernel src/linux/vmlinux 6 | 7 | startor1keasy: 8 | sim -f patches/or1ksim.cfg src/linux/vmlinux 9 | 10 | startor1k: 11 | sim -f patches/or1ksim.cfg src/linux/vmlinux 12 | 13 | -------------------------------------------------------------------------------- /patches/makelibtool: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | PREFIX=$1 4 | 5 | export CC="${PREFIX}-gcc" 6 | export LD="${PREFIX}-ld" 7 | export NM="${PREFIX}-nm -B" 8 | export AR="${PREFIX}-ar" 9 | export RANLIB="${PREFIX}-ranlib" 10 | export LN_S="ln -s" 11 | export CFLAGS="-g -O2" 12 | 13 | echo "Rebuilding libtool for \"$PREFIX\" ..." 14 | ./ltconfig --cache-file="./config.cache" --with-gcc --with-gnu-ld --no-verify \ 15 | ./ltmain.sh $PREFIX 16 | echo "Done." 17 | 18 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | jor1k toolchain builder 2 | ======================= 3 | 4 | These scripts should help to build the experimental musl-libc toolchain, programs and libraries for the openrisc or1k processor. 5 | The final goal is to build an bootable image with a number of tools available for further development. 6 | 7 | Parts are based on the book "Linux from Scratch", "buildroot", and "sabotage linux" 8 | 9 | **The repository is outdated. Please download http://www.jor1k.com/or1k-toolchain.tar.bz2 for the latest toolchain** 10 | Instead of "make fetchprogs", download the files in http://jor1k.com/downloads to the downloads folder. A folder with compiled packages is available under http://jor1k.com/packages 11 | 12 | -------------------------------------------------------------------------------- /scripts/fetch.make: -------------------------------------------------------------------------------- 1 | 2 | 3 | URL1 = ftp://gcc.gnu.org/pub/gcc/infrastructure/ 4 | URL2 = http://www.busybox.net/downloads/ 5 | URL3 = www.nano-editor.org/dist/v2.2/ 6 | URL4 = http://ftp.gnu.org/pub/gnu/ncurses/ 7 | URL5 = http://directfb.org/downloads/Core/DirectFB-1.6/ 8 | 9 | 10 | #not used 11 | fetchutils: 12 | wget -P downloads/ $(URL1)/gmp-$(GMP_VERSION).tar.bz2 13 | wget -P downloads/ $(URL1)/mpfr-$(MPFR_VERSION).tar.bz2 14 | wget -P downloads/ $(URL1)/mpc-$(MPC_VERSION).tar.gz 15 | wget -P downloads/ $(URL2)/busybox-$(BUSYBOX_VERSION).tar.bz2 16 | wget -P downloads/ $(URL3)/nano-$(NANO_VERSION).tar.gz 17 | wget -P downloads/ $(URL4)/ncurses-$(NCURSES_VERSION).tar.gz 18 | wget -P downloads/ $(URL5)/DirectFB-$(DIRECTFB_VERSION).tar.gz 19 | 20 | 21 | $(URLS): 22 | @for url in ${URLS}; do \ 23 | if [ ! -e $$(somefunc $${url}) ]; then \ 24 | echo wget $${url}; \ 25 | wget $${url}; \ 26 | fi \ 27 | done -------------------------------------------------------------------------------- /patches/libgcc_s.la: -------------------------------------------------------------------------------- 1 | # libz.la - a libtool library file 2 | # Generated by ltmain.sh (GNU libtool) 2.2.6b 3 | # 4 | # Please DO NOT delete this file! 5 | # It is necessary for linking the library. 6 | 7 | # The name that we can dlopen(3). 8 | dlname='libgcc_s.so.1' 9 | 10 | # Names of this library. 11 | library_names='libgcc_s.so.1 libgcc_s.so' 12 | 13 | # The name of the static archive. 14 | old_library='' 15 | 16 | # Linker flags that can not go in dependency_libs. 17 | inherited_linker_flags='' 18 | 19 | # Libraries that this one depends upon. 20 | dependency_libs='' 21 | 22 | # Names of additional weak libraries provided by this library 23 | weak_library_names='' 24 | 25 | # Version information for libz. 26 | current=1 27 | age=0 28 | revision=0 29 | 30 | # Is this an already installed library? 31 | installed=yes 32 | 33 | # Should we warn about portability when linking against -modules? 34 | shouldnotlink=no 35 | 36 | # Files to dlopen/dlpreopen 37 | dlopen='' 38 | dlpreopen='' 39 | 40 | # Directory that this library needs to be installed in: 41 | libdir='/usr/lib' 42 | 43 | -------------------------------------------------------------------------------- /patches/libz.la: -------------------------------------------------------------------------------- 1 | # libz.la - a libtool library file 2 | # Generated by ltmain.sh (GNU libtool) 2.2.6b 3 | # 4 | # Please DO NOT delete this file! 5 | # It is necessary for linking the library. 6 | 7 | # The name that we can dlopen(3). 8 | dlname='libz.so.1' 9 | 10 | # Names of this library. 11 | library_names='libz.so.1.2.8 libz.so.1 libz.so' 12 | 13 | # The name of the static archive. 14 | old_library='libz.a' 15 | 16 | # Linker flags that can not go in dependency_libs. 17 | inherited_linker_flags='' 18 | 19 | # Libraries that this one depends upon. 20 | dependency_libs='' 21 | 22 | # Names of additional weak libraries provided by this library 23 | weak_library_names='' 24 | 25 | # Version information for libz. 26 | current=1 27 | age=2 28 | revision=8 29 | 30 | # Is this an already installed library? 31 | installed=yes 32 | 33 | # Should we warn about portability when linking against -modules? 34 | shouldnotlink=no 35 | 36 | # Files to dlopen/dlpreopen 37 | dlopen='' 38 | dlpreopen='' 39 | 40 | # Directory that this library needs to be installed in: 41 | libdir='/usr/lib' 42 | 43 | -------------------------------------------------------------------------------- /scripts/image.make: -------------------------------------------------------------------------------- 1 | 2 | # not used anymore 3 | buildimageroot: 4 | dd if=/dev/zero of=ext2fsimage bs=1M count=128 5 | mkdir -p ext2fs 6 | mkfs.ext2 -F ext2fsimage 7 | mount ext2fsimage ext2fs -o loop,noexec,nosuid,rw 8 | cp -av $(SYSROOT)/* ext2fs/ 9 | #cp a.out ext2fs/ 10 | #cp uClibc-or1k/utils/ldd ext2fs/ 11 | mkdir ext2fs/etc 12 | #touch ext2fs/etc/ld.so.conf 13 | #touch ext2fs/etc/ld.so.cache 14 | chown -Rv root:root ext2fs/ 15 | #ln -s ../../lib/ld-uClibc.so.0 ext2fs/usr/lib/ld.so.1 16 | ln -s ld-uClibc.so.0 ext2fs/lib/ld.so.1 17 | #-chmod +s ext2fs/bin/busybox 18 | umount ext2fs 19 | 20 | mke2img: 21 | gcc patches/mke2img.c -o mke2img -lext2fs -lcom_err 22 | 23 | buildimage: 24 | dd if=/dev/zero of=ext2fsimage bs=1M count=300 25 | mkfs.ext2 -F ext2fsimage -b 4096 26 | mkdir -p $(SYSROOT)/etc 27 | mkdir -p $(SYSROOT)/tmp 28 | mkdir -p $(SYSROOT)/proc 29 | mkdir -p $(SYSROOT)/dev 30 | mkdir -p $(SYSROOT)/sys 31 | cp patches/startchroot $(SYSROOT) 32 | chmod u+x $(SYSROOT)/startchroot 33 | cp patches/hello.c $(SYSROOT) 34 | cp patches/startX $(SYSROOT) 35 | #this link is done in the toolchain: ln -f -s ld-uClibc.so.0 $(SYSROOT)/lib/ld.so.1 36 | ./mke2img ext2fsimage $(SYSROOT) 37 | 38 | splitimage: 39 | mkdir -p hd 40 | split -d -a4 --bytes=512K ext2fsimage hd/hd 41 | 42 | -------------------------------------------------------------------------------- /patches/MesaLib-9.1-no_ranlib.patch: -------------------------------------------------------------------------------- 1 | --- a/src/glsl/builtin_compiler/Makefile.am 2013-02-20 01:26:22.000000000 +0100 2 | +++ b/src/glsl/builtin_compiler/Makefile.am 2013-02-26 11:15:59.140842593 +0100 3 | @@ -64,6 +64,23 @@ 4 | include ../Makefile.sources 5 | 6 | noinst_PROGRAMS = builtin_compiler 7 | + 8 | +if CROSS_COMPILING 9 | +builtin_compiler_SOURCES = \ 10 | + $(top_srcdir)/src/mesa/main/hash_table.c \ 11 | + $(top_srcdir)/src/mesa/main/imports.c \ 12 | + $(top_srcdir)/src/mesa/program/prog_hash_table.c\ 13 | + $(top_srcdir)/src/mesa/program/symbol_table.c \ 14 | + $(BUILTIN_COMPILER_CXX_FILES) \ 15 | + $(GLSL_COMPILER_CXX_FILES) \ 16 | + $(LIBGLCPP_GENERATED_FILES) \ 17 | + $(LIBGLCPP_FILES) \ 18 | + $(BUILTIN_COMPILER_GENERATED_CXX_FILES) \ 19 | + $(LIBGLSL_FILES) 20 | +builtin_compiler_CFLAGS = $(AM_CFLAGS) 21 | +builtin_compiler_CPPFLAGS = $(AM_CPPFLAGS) 22 | +builtin_compiler_CXXFLAGS = $(AM_CXXFLAGS) 23 | +else 24 | noinst_LTLIBRARIES = libglslcore.la libglcpp.la 25 | 26 | libglcpp_la_SOURCES = \ 27 | @@ -82,3 +99,4 @@ 28 | $(BUILTIN_COMPILER_CXX_FILES) \ 29 | $(GLSL_COMPILER_CXX_FILES) 30 | builtin_compiler_LDADD = libglslcore.la libglcpp.la 31 | +endif 32 | -------------------------------------------------------------------------------- /scripts/build.make: -------------------------------------------------------------------------------- 1 | gmp_VERSION = 4.3.2 2 | mpfr_VERSION = 2.4.2 3 | mpc_VERSION = 0.8.1 4 | 5 | 6 | buildtools: gmp mpfr mpc binutils gcc 7 | 8 | gmp mpfr mpc: 9 | $(call extractpatch,$@,$($@_VERSION)) 10 | 11 | gcc: 12 | mkdir -p src/build-gcc 13 | touch $(SYSROOT)/usr/include/fenv.h 14 | rm -rf src/build-gcc/* 15 | ln -sf ../gmp src/or1k-gcc/gmp 16 | ln -sf ../mpfr src/or1k-gcc/mpfr 17 | ln -sf ../mpc src/or1k-gcc/mpc 18 | cd src/build-gcc; CFLAGS="-Os -fpic" ../../src/or1k-gcc/configure \ 19 | --target=or1k-linux \ 20 | --host=or1k-linux \ 21 | --prefix=/usr \ 22 | --program-prefix= \ 23 | --disable-libssp \ 24 | --srcdir=../../src/or1k-gcc \ 25 | --enable-languages=c,c++ \ 26 | --enable-threads=single \ 27 | --disable-libquadmath \ 28 | --disable-libatomic \ 29 | --disable-libgomp \ 30 | --disable-libmudflap \ 31 | --disable-multilib \ 32 | --without-headers \ 33 | --disable-docs 34 | cd src/build-gcc; echo "MAKEINFO = :" >> Makefile 35 | cd src/build-gcc; make 36 | cd src/build-gcc; make DESTDIR=$(SYSROOT) install-strip 37 | 38 | binutils: 39 | rm -rf src/build-or1k-src/* 40 | mkdir -p src/build-or1k-src 41 | cd src/build-or1k-src;../../src/or1k-src/configure \ 42 | --target=or1k-linux \ 43 | --host=or1k-linux \ 44 | --prefix=/usr \ 45 | --program-prefix= \ 46 | --disable-shared \ 47 | --disable-itcl \ 48 | --disable-tk \ 49 | --disable-tcl \ 50 | --disable-winsup \ 51 | --disable-libgui \ 52 | --disable-rda \ 53 | --disable-sid \ 54 | --disable-sim \ 55 | --disable-gdb \ 56 | --with-sysroot \ 57 | --disable-newlib \ 58 | --disable-libgloss \ 59 | --disable-werror \ 60 | --without-docdir 61 | cd src/build-or1k-src; echo "MAKEINFO = :" >> Makefile 62 | cd src/build-or1k-src; make 63 | cd src/build-or1k-src; echo "install-strip: install" >> readline/Makefile 64 | cd src/build-or1k-src; echo "install-strip: install" >> utils/Makefile 65 | cd src/build-or1k-src; STRIPPROG="or1k-linux-strip" make DESTDIR=$(SYSROOT) install-strip 66 | -------------------------------------------------------------------------------- /patches/or1ksim.dts: -------------------------------------------------------------------------------- 1 | /dts-v1/; 2 | / { 3 | compatible = "opencores,or1ksim"; 4 | #address-cells = <1>; 5 | #size-cells = <1>; 6 | interrupt-parent = <&pic>; 7 | 8 | chosen { 9 | bootargs = "console=uart,mmio,0x90000000,115200 video=ocfb:mode_option=640x400-32"; 10 | }; 11 | 12 | memory@0 { 13 | device_type = "memory"; 14 | reg = <0x00000000 0x04000000>; 15 | }; 16 | 17 | cpus { 18 | #address-cells = <1>; 19 | #size-cells = <0>; 20 | cpu@0 { 21 | compatible = "opencores,or1200-rtlsvn481"; 22 | reg = <0>; 23 | clock-frequency = <20000000>; 24 | }; 25 | }; 26 | 27 | /* 28 | * OR1K PIC is built into CPU and accessed via special purpose 29 | * registers. It is not addressable and, hence, has no 'reg' 30 | * property. 31 | */ 32 | pic: pic { 33 | compatible = "opencores,or1k-pic"; 34 | #interrupt-cells = <1>; 35 | interrupt-controller; 36 | }; 37 | 38 | serial0: serial@90000000 { 39 | compatible = "opencores,uart16550-rtlsvn105", "ns16550a"; 40 | reg = <0x90000000 0x100>; 41 | interrupts = <2>; 42 | clock-frequency = <20000000>; 43 | }; 44 | 45 | enet0: ethoc@92000000 { 46 | compatible = "opencores,ethmac-rtlsvn338"; 47 | reg = <0x92000000 0x100>; 48 | interrupts = <4>; 49 | }; 50 | 51 | fb0: fb@91000000 { 52 | compatible = "opencores,ocfb"; 53 | reg = <0x91000000 0x100>; 54 | interrupts = <8>; 55 | }; 56 | 57 | /* 58 | mtd0: flash@93000000 { 59 | device_type="rom"; 60 | compatible = "direct-mapped"; 61 | reg = <0x93000000 0x02000000>; 62 | bank-width = <1>; 63 | read-only; 64 | }; 65 | */ 66 | 67 | ata@9e000000 { 68 | compatible = "ata-generic"; 69 | reg = <0x9e000000 0x100 70 | 0x9e000100 0xf00>; 71 | pio-mode = <4>; 72 | reg-shift = <2>; 73 | interrupts = <15>; 74 | }; 75 | 76 | tsc@93000000 { 77 | compatible = "nxp,lpc3220-tsc"; 78 | reg = <0x93000000 0x1000>; 79 | interrupts = <0x9 0>; 80 | }; 81 | }; 82 | -------------------------------------------------------------------------------- /patches/raytracer.bc: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bc -lq 2 | width=640 3 | height=400 4 | angle=0.785 #pi/4 5 | 6 | spherepos[0]=width/2; spherepos[1]=height/2; spherepos[2]=140 7 | sphereradius=100 8 | spherecolor[0]=255; spherecolor[1]=170; spherecolor[2]=85 9 | 10 | lightpos[0]=0; lightpos[1]=0; lightpos[2]=0 11 | campos[0]=width/2; campos[1]=height/2; campos[2]=-((width/2)/(s(angle/2)/c(angle/2))) 12 | 13 | diffuse=0.75 14 | specular=0.5 15 | ambient=0.25 16 | shininess=10 17 | 18 | bgcolor[0]=0; bgcolor[1]=0; bgcolor[2]=0 19 | 20 | scale=4 21 | defaultscale=scale 22 | 23 | define len(vector[]) { 24 | return sqrt(vector[0]^2+vector[1]^2+vector[2]^2) 25 | } 26 | 27 | define clamp(value, min, max) { 28 | if(valuemax) { 31 | return max 32 | } 33 | 34 | return value 35 | } 36 | 37 | define printpixel(color[]) { 38 | scale=0 39 | 40 | print "\\\\x0\\\\x",color[2]/1,"\\\\x",color[1]/1,"\\\\x",color[0]/1,"\n" 41 | 42 | scale=defaultscale 43 | } 44 | 45 | define shade(normal[], dir[], lightdir[], diffusecolor[]) { 46 | auto cosang, half[], l, blinnterm, color[] 47 | 48 | cosang=clamp(normal[0]*lightdir[0]+normal[1]*lightdir[1]+normal[2]*lightdir[2], 0, 1) 49 | 50 | half[0]=dir[0]+lightdir[0]; half[1]=dir[1]+lightdir[1]; half[2]=dir[2]+lightdir[2] 51 | l=len(half[]) 52 | half[0]/=l; half[1]/=l; half[2]/=l 53 | 54 | blinnterm=0 55 | if(cosang>0) { 56 | blinnterm=clamp(normal[0]*half[0]+normal[1]*half[1]+normal[2]*half[2], 0, 1)^shininess 57 | } 58 | 59 | color[0]=clamp(diffusecolor[0]*cosang*diffuse+255*blinnterm*specular+diffusecolor[0]*ambient, 0, 255) 60 | color[1]=clamp(diffusecolor[1]*cosang*diffuse+255*blinnterm*specular+diffusecolor[1]*ambient, 0, 255) 61 | color[2]=clamp(diffusecolor[2]*cosang*diffuse+255*blinnterm*specular+diffusecolor[2]*ambient, 0, 255) 62 | 63 | null=printpixel(color[]) 64 | } 65 | 66 | define sphere(pos[], radius, origin[], dir[]) { 67 | auto s[], a, b, c, square, t, t2 68 | 69 | s[0]=pos[0]-origin[0]; s[1]=pos[1]-origin[1]; s[2]=pos[2]-origin[2] 70 | 71 | a=1 #the expression would be (dir[0]^2+dir[1]^2+dir[2]^2), but it's always 1 because the vector is normalized 72 | b=-2*(dir[0]*s[0]+dir[1]*s[1]+dir[2]*s[2]) 73 | c=s[0]^2+s[1]^2+s[2]^2-radius^2 74 | 75 | square=(b^2)-(4*a*c) 76 | 77 | if(square>0) { 78 | t=(-b+sqrt(square))/(2*a) 79 | t2=(-b-sqrt(square))/(2*a) 80 | 81 | if(t20) { 101 | is[0]=t*dir[0]+campos[0]; is[1]=t*dir[1]+campos[1]; is[2]=t*dir[2]+campos[2] 102 | 103 | normal[0]=spherepos[0]-is[0]; normal[1]=spherepos[1]-is[1]; normal[2]=spherepos[2]-is[2] 104 | l=len(normal[]) 105 | normal[0]/=l; normal[1]/=l; normal[2]/=l 106 | 107 | lightdir[0]=is[0]-lightpos[0]; lightdir[1]=is[1]-lightpos[1]; lightdir[2]=is[2]-lightpos[2] 108 | l=len(lightdir[]) 109 | lightdir[0]/=l; lightdir[1]/=l; lightdir[2]/=l 110 | 111 | null=shade(normal[], dir[], lightdir[], spherecolor[]) 112 | return 113 | } 114 | 115 | null=printpixel(bgcolor[]) 116 | } 117 | 118 | define mainloop(width, height) { 119 | auto x, y 120 | 121 | for(y=0;y 8 | #include 9 | #include 10 | 11 | #include 12 | #include FT_FREETYPE_H 13 | 14 | 15 | #define WIDTH 640 16 | #define HEIGHT 480 17 | 18 | 19 | /* origin is the upper left corner */ 20 | unsigned char image[HEIGHT][WIDTH]; 21 | 22 | 23 | /* Replace this function with something useful. */ 24 | 25 | void 26 | draw_bitmap( FT_Bitmap* bitmap, 27 | FT_Int x, 28 | FT_Int y) 29 | { 30 | FT_Int i, j, p, q; 31 | FT_Int x_max = x + bitmap->width; 32 | FT_Int y_max = y + bitmap->rows; 33 | 34 | 35 | for ( i = x, p = 0; i < x_max; i++, p++ ) 36 | { 37 | for ( j = y, q = 0; j < y_max; j++, q++ ) 38 | { 39 | if ( i < 0 || j < 0 || 40 | i >= WIDTH || j >= HEIGHT ) 41 | continue; 42 | 43 | image[j][i] |= bitmap->buffer[q * bitmap->width + p]; 44 | } 45 | } 46 | } 47 | 48 | 49 | void 50 | show_image( void ) 51 | { 52 | int i, j; 53 | 54 | 55 | for ( i = 0; i < HEIGHT; i++ ) 56 | { 57 | for ( j = 0; j < WIDTH; j++ ) 58 | putchar( image[i][j] == 0 ? ' ' 59 | : image[i][j] < 128 ? '+' 60 | : '*' ); 61 | putchar( '\n' ); 62 | } 63 | } 64 | 65 | 66 | int 67 | main( int argc, 68 | char** argv ) 69 | { 70 | FT_Library library; 71 | FT_Face face; 72 | 73 | FT_GlyphSlot slot; 74 | FT_Matrix matrix; /* transformation matrix */ 75 | FT_Vector pen; /* untransformed origin */ 76 | FT_Error error; 77 | 78 | char* filename; 79 | char* text; 80 | 81 | double angle; 82 | int target_height; 83 | int n, num_chars; 84 | 85 | 86 | if ( argc != 3 ) 87 | { 88 | fprintf ( stderr, "usage: %s font sample-text\n", argv[0] ); 89 | exit( 1 ); 90 | } 91 | 92 | filename = argv[1]; /* first argument */ 93 | text = argv[2]; /* second argument */ 94 | num_chars = strlen( text ); 95 | angle = ( 25.0 / 360 ) * 3.14159 * 2; /* use 25 degrees */ 96 | target_height = HEIGHT; 97 | 98 | error = FT_Init_FreeType( &library ); /* initialize library */ 99 | /* error handling omitted */ 100 | 101 | error = FT_New_Face( library, filename, 0, &face );/* create face object */ 102 | /* error handling omitted */ 103 | 104 | /* use 50pt at 100dpi */ 105 | error = FT_Set_Char_Size( face, 50 * 64, 0, 106 | 100, 0 ); /* set character size */ 107 | /* error handling omitted */ 108 | 109 | slot = face->glyph; 110 | 111 | /* set up matrix */ 112 | matrix.xx = (FT_Fixed)( cos( angle ) * 0x10000L ); 113 | matrix.xy = (FT_Fixed)(-sin( angle ) * 0x10000L ); 114 | matrix.yx = (FT_Fixed)( sin( angle ) * 0x10000L ); 115 | matrix.yy = (FT_Fixed)( cos( angle ) * 0x10000L ); 116 | 117 | /* the pen position in 26.6 cartesian space coordinates; */ 118 | /* start at (300,200) relative to the upper left corner */ 119 | pen.x = 300 * 64; 120 | pen.y = ( target_height - 200 ) * 64; 121 | 122 | for ( n = 0; n < num_chars; n++ ) 123 | { 124 | /* set transformation */ 125 | FT_Set_Transform( face, &matrix, &pen ); 126 | 127 | /* load glyph image into the slot (erase previous one) */ 128 | error = FT_Load_Char( face, text[n], FT_LOAD_RENDER ); 129 | if ( error ) 130 | continue; /* ignore errors */ 131 | 132 | /* now, draw to our target surface (convert position) */ 133 | draw_bitmap( &slot->bitmap, 134 | slot->bitmap_left, 135 | target_height - slot->bitmap_top ); 136 | 137 | /* increment pen position */ 138 | pen.x += slot->advance.x; 139 | pen.y += slot->advance.y; 140 | } 141 | 142 | show_image(); 143 | 144 | FT_Done_Face ( face ); 145 | FT_Done_FreeType( library ); 146 | 147 | return 0; 148 | } 149 | 150 | /* EOF */ 151 | -------------------------------------------------------------------------------- /scripts/toolchain.make: -------------------------------------------------------------------------------- 1 | fetchtoolchain: 2 | cd src; git clone git://github.com/openrisc/or1k-src.git 3 | cd src; git clone git://github.com/openrisc/or1k-gcc.git 4 | cd src; git clone git://github.com/openrisc/uClibc-or1k.git 5 | cd src; git clone git://github.com/openrisc/or1k-dejagnu.git 6 | cd src; git clone git://openrisc.net/jonas/linux 7 | cd src; git clone git://github.com/openrisc/or1ksim.git 8 | 9 | or1ksim: 10 | cd src/or1ksim; ./configure 11 | cd src/or1ksim; make 12 | cd src/or1ksim; make install 13 | 14 | dejagnu: 15 | cd src/or1k-dejagnu; ./configure 16 | cd src/or1k-dejagnu; make 17 | cd src/or1k-dejagnu; make install 18 | 19 | toolchain: 20 | $(MAKE) toolchain_newlib_stage1 21 | $(MAKE) toolchain_newlib_stage2 22 | $(MAKE) toolchain_newlib_stage3 23 | $(MAKE) toolchain_newlib_stage4 24 | $(MAKE) toolchain_stage1 25 | $(MAKE) toolchain_stage2 26 | $(MAKE) toolchain_stage3 27 | $(MAKE) toolchain_stage4 28 | $(MAKE) toolchain_stage5 29 | 30 | toolchainpull: 31 | -cd src/or1k-src; git pull 32 | -cd src/or1k-gcc; git pull 33 | -cd src/uClibc-or1k; git pull 34 | -cd src/or1ksim; git pull 35 | -cd src/linux; git pull 36 | 37 | toolchaincheck: 38 | -cd src/or1k-src; git fsck --full 39 | -cd src/or1k-gcc; git fsck --full 40 | -cd src/uClibc-or1k; git fsck --full 41 | -cd src/linux; git fsck --full 42 | 43 | 44 | toolchain_stage1: 45 | mkdir -p src/build-or1k-src 46 | rm -rf src/build-or1k-src/* 47 | cd src/build-or1k-src;../../src/or1k-src/configure \ 48 | --target=or1k-linux \ 49 | --prefix=$(TOOLCHAIN_DIR) \ 50 | --disable-shared \ 51 | --disable-itcl \ 52 | --disable-tk \ 53 | --disable-tcl \ 54 | --disable-winsup \ 55 | --disable-libgui \ 56 | --disable-rda \ 57 | --disable-sid \ 58 | --disable-sim \ 59 | --disable-gdb \ 60 | --with-sysroot \ 61 | --disable-newlib \ 62 | --disable-libgloss \ 63 | --disable-werror \ 64 | --without-docdir 65 | cd src/build-or1k-src; echo "MAKEINFO = :" >> Makefile 66 | cd src/build-or1k-src; make 67 | cd src/build-or1k-src; make install 68 | 69 | toolchain_stage2: 70 | cd src/linux/; make INSTALL_HDR_PATH=${SYSROOT}/usr headers_install 71 | 72 | toolchain_stage3: 73 | mkdir -p src/build-gcc 74 | rm -rf src/build-gcc/* 75 | cd src/build-gcc; ../../src/or1k-gcc/configure \ 76 | --target=or1k-linux \ 77 | --prefix=$(TOOLCHAIN_DIR) \ 78 | --disable-libssp \ 79 | --srcdir=../../src/or1k-gcc \ 80 | --enable-languages=c \ 81 | --without-headers \ 82 | --enable-threads=single \ 83 | --disable-libgomp \ 84 | --disable-libmudflap \ 85 | --disable-shared \ 86 | --disable-libquadmath \ 87 | --disable-libatomic \ 88 | --disable-docs 89 | cd src/build-gcc; echo "MAKEINFO = :" >> Makefile 90 | cd src/build-gcc; make 91 | cd src/build-gcc; make install 92 | 93 | toolchain_stage4: 94 | cd src/uClibc-or1k; make clean 95 | cd src/uClibc-or1k; make distclean 96 | cd src/uClibc-or1k; make ARCH=or1k defconfig 97 | cp patches/CONFIG_UCLIBC src/uClibc-or1k/.config 98 | cd src/uClibc-or1k; make PREFIX=$(SYSROOT) 99 | cd src/uClibc-or1k; make PREFIX=$(SYSROOT) install 100 | ln -f -s ld-uClibc.so.0 $(SYSROOT)/lib/ld.so.1 101 | 102 | 103 | toolchain_stage5: 104 | rm -rf src/build-gcc/* 105 | cd src/build-gcc; ../../src/or1k-gcc/configure \ 106 | --target=or1k-linux \ 107 | --prefix=$(TOOLCHAIN_DIR) \ 108 | --disable-libssp \ 109 | --srcdir=../../src/or1k-gcc \ 110 | --enable-languages=c,c++ \ 111 | --enable-threads=posix \ 112 | --disable-libgomp \ 113 | --disable-libmudflap \ 114 | --with-sysroot=$(SYSROOT) \ 115 | --disable-multilib \ 116 | --disable-docs 117 | cd src/build-gcc; echo "MAKEINFO = :" >> Makefile 118 | cd src/build-gcc; make 119 | cd src/build-gcc; make install 120 | 121 | toolchain_newlib_stage1: 122 | mkdir -p src/build-or1k-src 123 | rm -rf src/build-or1k-src/* 124 | cd src/build-or1k-src;../../src/or1k-src/configure \ 125 | --target=or1k-elf \ 126 | --prefix=$(TOOLCHAIN_DIR) \ 127 | --enable-shared \ 128 | --disable-itcl \ 129 | --disable-tk \ 130 | --disable-tcl \ 131 | --disable-winsup \ 132 | --disable-libgui \ 133 | --disable-rda \ 134 | --disable-sid \ 135 | --disable-sim \ 136 | --disable-gdb \ 137 | --with-sysroot \ 138 | --disable-newlib \ 139 | --disable-libgloss \ 140 | --disable-werror \ 141 | --without-docdir 142 | cd src/build-or1k-src; echo "MAKEINFO = :" >> Makefile 143 | cd src/build-or1k-src; make 144 | cd src/build-or1k-src; make install 145 | 146 | 147 | toolchain_newlib_stage2: 148 | mkdir -p src/build-gcc 149 | rm -rf src/build-gcc/* 150 | cd src/or1k-gcc; 151 | cd src/build-gcc; ../../src/or1k-gcc/configure \ 152 | --target=or1k-elf \ 153 | --prefix=$(TOOLCHAIN_DIR) \ 154 | --disable-libssp \ 155 | --enable-languages=c \ 156 | --disable-shared \ 157 | --disable-docs 158 | cd src/build-gcc; echo "MAKEINFO = :" >> Makefile 159 | cd src/build-gcc; make 160 | cd src/build-gcc; make install 161 | 162 | toolchain_newlib_stage3: 163 | rm -rf src/build-or1k-src/* 164 | cd src/build-or1k-src;../../src/or1k-src/configure \ 165 | --target=or1k-elf \ 166 | --prefix=$(TOOLCHAIN_DIR) \ 167 | --enable-shared \ 168 | --disable-itcl \ 169 | --disable-tk \ 170 | --disable-tcl \ 171 | --disable-winsup \ 172 | --disable-libgui \ 173 | --disable-rda \ 174 | --disable-sid \ 175 | --enable-sim \ 176 | --disable-or1ksim \ 177 | --enable-gdb \ 178 | --with-sysroot \ 179 | --enable-newlib \ 180 | --enable-libgloss \ 181 | --disable-werror \ 182 | --without-docdir 183 | cd src/build-or1k-src; echo "MAKEINFO = :" >> Makefile 184 | cd src/build-or1k-src; make 185 | cd src/build-or1k-src; make install 186 | 187 | toolchain_newlib_stage4: 188 | rm -rf src/build-gcc/* 189 | cd src/or1k-gcc; 190 | cd src/build-gcc; ../../src/or1k-gcc/configure \ 191 | --target=or1k-elf \ 192 | --prefix=$(TOOLCHAIN_DIR) \ 193 | --disable-libssp \ 194 | --with-newlib \ 195 | --enable-languages=c \ 196 | --disable-shared \ 197 | --disable-docs 198 | cd src/build-gcc; echo "MAKEINFO = :" >> Makefile 199 | cd src/build-gcc; make 200 | cd src/build-gcc; make install 201 | 202 | 203 | 204 | 205 | 206 | -------------------------------------------------------------------------------- /patches/CONFIG_UCLIBC: -------------------------------------------------------------------------------- 1 | # 2 | # Automatically generated make config: don't edit 3 | # Version: 0.9.34-git 4 | # Tue Jun 4 19:13:48 2013 5 | # 6 | # TARGET_alpha is not set 7 | # TARGET_arm is not set 8 | # TARGET_avr32 is not set 9 | # TARGET_bfin is not set 10 | # TARGET_c6x is not set 11 | # TARGET_cris is not set 12 | # TARGET_e1 is not set 13 | # TARGET_frv is not set 14 | # TARGET_h8300 is not set 15 | # TARGET_hppa is not set 16 | # TARGET_i386 is not set 17 | # TARGET_i960 is not set 18 | # TARGET_ia64 is not set 19 | # TARGET_m68k is not set 20 | # TARGET_microblaze is not set 21 | # TARGET_mips is not set 22 | # TARGET_nios is not set 23 | # TARGET_nios2 is not set 24 | TARGET_or1k=y 25 | # TARGET_powerpc is not set 26 | # TARGET_sh is not set 27 | # TARGET_sh64 is not set 28 | # TARGET_sparc is not set 29 | # TARGET_v850 is not set 30 | # TARGET_vax is not set 31 | # TARGET_x86_64 is not set 32 | # TARGET_xtensa is not set 33 | 34 | # 35 | # Target Architecture Features and Options 36 | # 37 | TARGET_ARCH="or1k" 38 | CONFIG_OR1K=y 39 | TARGET_SUBARCH="" 40 | 41 | # 42 | # Using ELF file format 43 | # 44 | ARCH_BIG_ENDIAN=y 45 | 46 | # 47 | # Using Big Endian 48 | # 49 | ARCH_HAS_MMU=y 50 | ARCH_USE_MMU=y 51 | UCLIBC_HAS_FLOATS=y 52 | UCLIBC_HAS_FPU=y 53 | DO_C99_MATH=y 54 | # DO_XSI_MATH is not set 55 | # UCLIBC_HAS_FENV is not set 56 | KERNEL_HEADERS="${SYSROOT}/usr/include" 57 | HAVE_DOT_CONFIG=y 58 | 59 | # 60 | # General Library Settings 61 | # 62 | DOPIC=y 63 | HAVE_SHARED=y 64 | # FORCE_SHAREABLE_TEXT_SEGMENTS is not set 65 | LDSO_LDD_SUPPORT=y 66 | LDSO_CACHE_SUPPORT=y 67 | LDSO_PRELOAD_ENV_SUPPORT=y 68 | # LDSO_PRELOAD_FILE_SUPPORT is not set 69 | LDSO_BASE_FILENAME="ld.so" 70 | # LDSO_STANDALONE_SUPPORT is not set 71 | # LDSO_PRELINK_SUPPORT is not set 72 | UCLIBC_STATIC_LDCONFIG=y 73 | LDSO_RUNPATH=y 74 | LDSO_SEARCH_INTERP_PATH=y 75 | LDSO_LD_LIBRARY_PATH=y 76 | # LDSO_NO_CLEANUP is not set 77 | UCLIBC_CTOR_DTOR=y 78 | # LDSO_GNU_HASH_SUPPORT is not set 79 | # HAS_NO_THREADS is not set 80 | LINUXTHREADS_OLD=y 81 | # LINUXTHREADS_NEW is not set 82 | # UCLIBC_HAS_THREADS_NATIVE is not set 83 | UCLIBC_HAS_THREADS=y 84 | # PTHREADS_DEBUG_SUPPORT is not set 85 | UCLIBC_HAS_SYSLOG=y 86 | UCLIBC_HAS_LFS=y 87 | # MALLOC is not set 88 | # MALLOC_SIMPLE is not set 89 | MALLOC_STANDARD=y 90 | # MALLOC_GLIBC_COMPAT is not set 91 | # UCLIBC_DYNAMIC_ATEXIT is not set 92 | COMPAT_ATEXIT=y 93 | UCLIBC_SUSV3_LEGACY=y 94 | # UCLIBC_SUSV3_LEGACY_MACROS is not set 95 | UCLIBC_SUSV4_LEGACY=y 96 | # UCLIBC_STRICT_HEADERS is not set 97 | # UCLIBC_HAS_STUBS is not set 98 | UCLIBC_HAS_SHADOW=y 99 | UCLIBC_HAS_PROGRAM_INVOCATION_NAME=y 100 | UCLIBC_HAS___PROGNAME=y 101 | UCLIBC_HAS_PTY=y 102 | ASSUME_DEVPTS=y 103 | UNIX98PTY_ONLY=y 104 | # UCLIBC_HAS_GETPT is not set 105 | # UCLIBC_HAS_LIBUTIL is not set 106 | UCLIBC_HAS_TM_EXTENSIONS=y 107 | UCLIBC_HAS_TZ_CACHING=y 108 | UCLIBC_HAS_TZ_FILE=y 109 | UCLIBC_HAS_TZ_FILE_READ_MANY=y 110 | UCLIBC_TZ_FILE_PATH="/etc/TZ" 111 | UCLIBC_FALLBACK_TO_ETC_LOCALTIME=y 112 | 113 | # 114 | # Advanced Library Settings 115 | # 116 | UCLIBC_PWD_BUFFER_SIZE=256 117 | UCLIBC_GRP_BUFFER_SIZE=256 118 | 119 | # 120 | # Support various families of functions 121 | # 122 | UCLIBC_LINUX_MODULE_26=y 123 | UCLIBC_LINUX_MODULE_24=y 124 | UCLIBC_LINUX_SPECIFIC=y 125 | UCLIBC_HAS_GNU_ERROR=y 126 | UCLIBC_BSD_SPECIFIC=y 127 | UCLIBC_HAS_BSD_ERR=y 128 | # UCLIBC_HAS_OBSOLETE_BSD_SIGNAL is not set 129 | # UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL is not set 130 | # UCLIBC_NTP_LEGACY is not set 131 | # UCLIBC_SV4_DEPRECATED is not set 132 | UCLIBC_HAS_REALTIME=y 133 | UCLIBC_HAS_ADVANCED_REALTIME=y 134 | UCLIBC_HAS_EPOLL=y 135 | UCLIBC_HAS_XATTR=y 136 | UCLIBC_HAS_PROFILING=y 137 | UCLIBC_HAS_CRYPT_IMPL=y 138 | # UCLIBC_HAS_SHA256_CRYPT_IMPL is not set 139 | # UCLIBC_HAS_SHA512_CRYPT_IMPL is not set 140 | UCLIBC_HAS_CRYPT=y 141 | UCLIBC_HAS_NETWORK_SUPPORT=y 142 | UCLIBC_HAS_SOCKET=y 143 | UCLIBC_HAS_IPV4=y 144 | UCLIBC_HAS_IPV6=y 145 | UCLIBC_HAS_RPC=y 146 | UCLIBC_HAS_FULL_RPC=y 147 | UCLIBC_HAS_REENTRANT_RPC=y 148 | # UCLIBC_USE_NETLINK is not set 149 | # UCLIBC_HAS_BSD_RES_CLOSE is not set 150 | UCLIBC_HAS_COMPAT_RES_STATE=y 151 | # UCLIBC_HAS_EXTRA_COMPAT_RES_STATE is not set 152 | # UCLIBC_HAS_RESOLVER_SUPPORT is not set 153 | # UCLIBC_HAS_LIBRESOLV_STUB is not set 154 | # UCLIBC_HAS_LIBNSL_STUB is not set 155 | 156 | # 157 | # String and Stdio Support 158 | # 159 | UCLIBC_HAS_STRING_GENERIC_OPT=y 160 | UCLIBC_HAS_STRING_ARCH_OPT=y 161 | UCLIBC_HAS_CTYPE_TABLES=y 162 | UCLIBC_HAS_CTYPE_SIGNED=y 163 | UCLIBC_HAS_CTYPE_UNSAFE=y 164 | # UCLIBC_HAS_CTYPE_CHECKED is not set 165 | # UCLIBC_HAS_CTYPE_ENFORCED is not set 166 | UCLIBC_HAS_WCHAR=y 167 | # UCLIBC_HAS_LOCALE is not set 168 | # UCLIBC_HAS_HEXADECIMAL_FLOATS is not set 169 | # UCLIBC_HAS_GLIBC_CUSTOM_PRINTF is not set 170 | UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9 171 | # UCLIBC_HAS_STDIO_BUFSIZ_NONE is not set 172 | # UCLIBC_HAS_STDIO_BUFSIZ_256 is not set 173 | # UCLIBC_HAS_STDIO_BUFSIZ_512 is not set 174 | # UCLIBC_HAS_STDIO_BUFSIZ_1024 is not set 175 | # UCLIBC_HAS_STDIO_BUFSIZ_2048 is not set 176 | UCLIBC_HAS_STDIO_BUFSIZ_4096=y 177 | # UCLIBC_HAS_STDIO_BUFSIZ_8192 is not set 178 | UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE=y 179 | # UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4 is not set 180 | # UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8 is not set 181 | # UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT is not set 182 | UCLIBC_HAS_STDIO_GETC_MACRO=y 183 | UCLIBC_HAS_STDIO_PUTC_MACRO=y 184 | UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION=y 185 | # UCLIBC_HAS_FOPEN_LARGEFILE_MODE is not set 186 | # UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE is not set 187 | UCLIBC_HAS_FOPEN_CLOSEEXEC_MODE=y 188 | # UCLIBC_HAS_GLIBC_CUSTOM_STREAMS is not set 189 | # UCLIBC_HAS_PRINTF_M_SPEC is not set 190 | UCLIBC_HAS_ERRNO_MESSAGES=y 191 | # UCLIBC_HAS_SYS_ERRLIST is not set 192 | UCLIBC_HAS_SIGNUM_MESSAGES=y 193 | # UCLIBC_HAS_SYS_SIGLIST is not set 194 | UCLIBC_HAS_GNU_GETOPT=y 195 | UCLIBC_HAS_GNU_GETSUBOPT=y 196 | 197 | # 198 | # Big and Tall 199 | # 200 | UCLIBC_HAS_REGEX=y 201 | UCLIBC_HAS_REGEX_OLD=y 202 | UCLIBC_HAS_FNMATCH=y 203 | UCLIBC_HAS_FNMATCH_OLD=y 204 | # UCLIBC_HAS_WORDEXP is not set 205 | # UCLIBC_HAS_NFTW is not set 206 | # UCLIBC_HAS_FTW is not set 207 | # UCLIBC_HAS_FTS is not set 208 | UCLIBC_HAS_GLOB=y 209 | # UCLIBC_HAS_GNU_GLOB is not set 210 | # UCLIBC_HAS_UTMPX is not set 211 | 212 | # 213 | # Library Installation Options 214 | # 215 | RUNTIME_PREFIX="/" 216 | DEVEL_PREFIX="/usr" 217 | MULTILIB_DIR="lib" 218 | HARDWIRED_ABSPATH=y 219 | 220 | # 221 | # Security options 222 | # 223 | # UCLIBC_HAS_ARC4RANDOM is not set 224 | # UCLIBC_HAS_SSP is not set 225 | UCLIBC_BUILD_RELRO=y 226 | # UCLIBC_BUILD_NOW is not set 227 | UCLIBC_BUILD_NOEXECSTACK=y 228 | 229 | # 230 | # Development/debugging options 231 | # 232 | CROSS_COMPILER_PREFIX="or1k-linux-" 233 | UCLIBC_EXTRA_CFLAGS="" 234 | # DODEBUG is not set 235 | # DODEBUG_PT is not set 236 | DOSTRIP=y 237 | # DOASSERTS is not set 238 | # SUPPORT_LD_DEBUG is not set 239 | # SUPPORT_LD_DEBUG_EARLY is not set 240 | # UCLIBC_MALLOC_DEBUGGING is not set 241 | # UCLIBC_HAS_BACKTRACE is not set 242 | WARNINGS="-Wall" 243 | # EXTRA_WARNINGS is not set 244 | # DOMULTI is not set 245 | # UCLIBC_MJN3_ONLY is not set 246 | -------------------------------------------------------------------------------- /patches/mke2img.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | static char buf[16384]; 10 | 11 | static void 12 | error(errcode_t e, const char *mesg, ...) 13 | { 14 | va_list args; 15 | 16 | va_start(args, mesg); 17 | vfprintf(stderr, mesg, args); 18 | va_end(args); 19 | 20 | fprintf(stderr, ": %s\n", error_message(e)); 21 | } 22 | 23 | static void 24 | trawl_dir(ext2_filsys image, ext2fs_inode_bitmap bitmap, ext2_ino_t parent_dir) 25 | { 26 | DIR *d = opendir("."); 27 | struct dirent *dd; 28 | errcode_t e; 29 | 30 | if (d == NULL) 31 | { 32 | perror("opendir"); 33 | exit(1); 34 | } 35 | 36 | while((dd = readdir(d)) != NULL) 37 | { 38 | struct stat info; 39 | struct ext2_inode inode_info; 40 | ext2_ino_t new; 41 | int type; 42 | 43 | if (strcmp(dd->d_name, ".") == 0 || 44 | strcmp(dd->d_name, "..") == 0) 45 | { 46 | /* We don't need to duplicate these. */ 47 | continue; 48 | } 49 | 50 | if (lstat(dd->d_name, &info)) 51 | { 52 | perror(dd->d_name); 53 | continue; 54 | } 55 | 56 | if ((e = ext2fs_new_inode(image, parent_dir, info.st_mode, 0, &new))) 57 | { 58 | error(e, "Creating new inode '%s'", dd->d_name); 59 | continue; 60 | } 61 | 62 | if (S_ISDIR(info.st_mode)) 63 | { 64 | if ((e = ext2fs_mkdir(image, parent_dir, new, dd->d_name))) 65 | { 66 | if ((e = ext2fs_expand_dir(image, parent_dir))) 67 | { 68 | error(e, "Couldn't expand dir '%s'", dd->d_name); 69 | continue; 70 | } 71 | if ((e = ext2fs_mkdir(image, parent_dir, new, dd->d_name))) 72 | { 73 | 74 | error(e, "Couldn't create dir '%s'", dd->d_name); 75 | continue; 76 | } 77 | } 78 | /* 79 | if ((e = ext2fs_expand_dir(image, new))) 80 | { 81 | error(e, "Couldn't expand dir '%s'", dd->d_name); 82 | continue; 83 | } 84 | */ 85 | 86 | printf("recursing -> %s\n", dd->d_name); 87 | 88 | if (! chdir(dd->d_name)) 89 | { 90 | trawl_dir(image, bitmap, new); 91 | chdir(".."); 92 | } 93 | else 94 | perror(dd->d_name); 95 | } 96 | else if (S_ISREG(info.st_mode)) 97 | { 98 | ext2_file_t f; 99 | blk_t blockno; 100 | int fd, len, out; 101 | char buf[4096]; 102 | 103 | printf("Creating %s\n", dd->d_name); 104 | 105 | memset(&inode_info, 0, sizeof(inode_info)); 106 | 107 | inode_info.i_mode = LINUX_S_IFREG | (info.st_mode & 0777); 108 | inode_info.i_uid = info.st_uid; 109 | inode_info.i_gid = info.st_gid; 110 | inode_info.i_atime = info.st_atime; 111 | inode_info.i_mtime = info.st_mtime; 112 | inode_info.i_ctime = info.st_ctime; 113 | inode_info.i_links_count = 1; 114 | inode_info.i_size = info.st_size; 115 | 116 | if ((e = ext2fs_write_new_inode(image, new, &inode_info))) 117 | error(e, "Setting new file attributes"); 118 | 119 | ext2fs_inode_alloc_stats2(image, new, +1, 1); 120 | 121 | if ((fd = open(dd->d_name, O_RDONLY)) < 0) 122 | { 123 | perror(dd->d_name); 124 | continue; 125 | } 126 | 127 | if ((e = ext2fs_file_open(image, new, EXT2_FILE_WRITE, &f))) 128 | { 129 | error(e, "Creating file '%s'", dd->d_name); 130 | continue; 131 | } 132 | 133 | while((len = read(fd, buf, image->blocksize)) > 0) 134 | { 135 | if ((e = ext2fs_file_write(f, buf, len, &out)) || 136 | (out < len)) 137 | { 138 | error(e, "Copying '%s'", dd->d_name); 139 | ext2fs_file_close(f); 140 | continue; 141 | } 142 | 143 | if ((e = ext2fs_file_flush(f))) 144 | error(e, "Flushing"); 145 | } 146 | 147 | if ((e = ext2fs_file_close(f))) 148 | error(e, "Closing %s", dd->d_name); 149 | 150 | close(fd); 151 | 152 | /* If dir is full, call ext2fs_expand_dir. */ 153 | 154 | if ((e = ext2fs_link(image, parent_dir, dd->d_name, new, EXT2_FT_REG_FILE))) 155 | { 156 | 157 | if ((e = ext2fs_expand_dir(image, parent_dir))) 158 | { 159 | error(e, "Couldn't expand dir '%s'", dd->d_name); 160 | continue; 161 | } 162 | if ((e = ext2fs_link(image, parent_dir, dd->d_name, new, EXT2_FT_REG_FILE))) 163 | { 164 | 165 | error(e, "Failed to copy '%s'", dd->d_name); 166 | continue; 167 | } 168 | } 169 | } 170 | else 171 | { 172 | if (S_ISCHR(info.st_mode)) 173 | type = EXT2_FT_CHRDEV; 174 | else if (S_ISBLK(info.st_mode)) 175 | type = EXT2_FT_BLKDEV; 176 | else if (S_ISFIFO(info.st_mode)) 177 | type = EXT2_FT_FIFO; 178 | else if (S_ISSOCK(info.st_mode)) 179 | type = EXT2_FT_SOCK; 180 | else if (S_ISLNK(info.st_mode)) 181 | type = EXT2_FT_SYMLINK; 182 | else 183 | { 184 | fprintf(stderr, "%s: not file or dir (specials unimplemented)\n", dd->d_name); 185 | continue; 186 | } 187 | 188 | memset(&inode_info, 0, sizeof(inode_info)); 189 | 190 | inode_info.i_mode = info.st_mode; 191 | inode_info.i_uid = info.st_uid; 192 | inode_info.i_gid = info.st_gid; 193 | inode_info.i_atime = info.st_atime; 194 | inode_info.i_mtime = info.st_mtime; 195 | inode_info.i_ctime = info.st_ctime; 196 | inode_info.i_links_count = 1; 197 | inode_info.i_size = info.st_size; 198 | inode_info.i_block[0] = info.st_rdev; 199 | 200 | if ((e = ext2fs_write_new_inode(image, new, &inode_info))) 201 | error(e, "Writing new device inode"); 202 | 203 | ext2fs_inode_alloc_stats2(image, new, +1, 1); 204 | 205 | if (type == EXT2_FT_SYMLINK) 206 | { 207 | ext2_file_t f; 208 | char buf[1024]; 209 | 210 | if (readlink(dd->d_name, buf, sizeof(buf)) >= 0) 211 | { 212 | int out; 213 | 214 | if ((e = ext2fs_file_open(image, new, EXT2_FILE_WRITE, &f)) != 0 || 215 | (e = ext2fs_file_write(f, buf, info.st_size, &out)) != 0) 216 | error(e, "Copying symlink '%s'", dd->d_name); 217 | 218 | ext2fs_file_close(f); 219 | } 220 | else 221 | perror(dd->d_name); 222 | } 223 | 224 | if ((e = ext2fs_link(image, parent_dir, dd->d_name, new, type))) 225 | { 226 | if ((e = ext2fs_expand_dir(image, parent_dir))) 227 | { 228 | error(e, "Couldn't expand dir '%s'", dd->d_name); 229 | continue; 230 | } 231 | 232 | if ((e = ext2fs_link(image, parent_dir, dd->d_name, new, type))) 233 | { 234 | error(e, "Failed to copy '%s'", dd->d_name); 235 | continue; 236 | } 237 | } 238 | } 239 | } 240 | 241 | closedir(d); 242 | } 243 | 244 | int 245 | main(int argc, char **argv) 246 | { 247 | ext2_filsys image; 248 | ext2_ino_t parent_dir = EXT2_ROOT_INO; 249 | ext2fs_inode_bitmap bitmap; 250 | errcode_t e; 251 | 252 | if (argc < 3) 253 | { 254 | fprintf(stderr, "Usage:\n\t%s ext2-image dirtree\n", argv[0]); 255 | exit(1); 256 | } 257 | 258 | initialize_ext2_error_table(); 259 | 260 | if ((e = ext2fs_open(argv[1], 261 | EXT2_FLAG_RW, 262 | 0 /*primary SUPERBLOCK*/, 263 | 0/* DEFAULT BLOCKSIZE */, 264 | unix_io_manager, 265 | &image))) 266 | { 267 | fputs("Eep!\n", stderr); 268 | exit(1); 269 | } 270 | 271 | if ((e = ext2fs_read_bitmaps(image))) 272 | { 273 | error(e, "Reading bitmaps"); 274 | } 275 | 276 | chdir(argv[2]); 277 | trawl_dir(image, 0, parent_dir); 278 | 279 | if ((e = ext2fs_write_bitmaps(image))) 280 | { 281 | error(e, "Writing inode bitmap"); 282 | } 283 | 284 | if (ext2fs_close(image)) 285 | { 286 | fputs("Error closing off the image - things may be broken\n", stderr); 287 | exit(1); 288 | } 289 | 290 | return 0; 291 | } 292 | 293 | /* $Id: mke2img.c,v 1.1 2006/07/17 06:55:31 john Exp $ -- EOF */ 294 | 295 | 296 | -------------------------------------------------------------------------------- /scripts/X.make: -------------------------------------------------------------------------------- 1 | # ------------------- 2 | xcb-proto_VERSION = 1.8 3 | bigreqsproto_VERSION = 1.1.2 4 | compositeproto_VERSION = 0.4.2 5 | damageproto_VERSION = 1.2.1 6 | dmxproto_VERSION = 2.3.1 7 | dri2proto_VERSION = 2.8 8 | fixesproto_VERSION = 5.0 9 | fontsproto_VERSION = 2.1.2 10 | glproto_VERSION = 1.4.16 11 | inputproto_VERSION = 2.3 12 | kbproto_VERSION = 1.0.6 13 | randrproto_VERSION = 1.4.0 14 | recordproto_VERSION = 1.14.2 15 | renderproto_VERSION = 0.11.1 16 | resourceproto_VERSION = 1.2.0 17 | scrnsaverproto_VERSION = 1.2.2 18 | videoproto_VERSION = 2.3.1 19 | xcmiscproto_VERSION = 1.2.2 20 | xextproto_VERSION = 7.2.1 21 | xf86bigfontproto_VERSION = 1.2.0 22 | xf86dgaproto_VERSION = 2.1 23 | xf86driproto_VERSION = 2.1.1 24 | xf86vidmodeproto_VERSION = 2.3.1 25 | xineramaproto_VERSION = 1.2.1 26 | xproto_VERSION = 7.0.23 27 | PROTO_XLIBS = bigreqsproto compositeproto damageproto dmxproto dri2proto fixesproto fontsproto \ 28 | glproto inputproto kbproto randrproto recordproto renderproto resourceproto scrnsaverproto videoproto \ 29 | xcmiscproto xextproto xcb-proto \ 30 | xf86bigfontproto xf86dgaproto xf86driproto xf86vidmodeproto xineramaproto xproto 31 | xproto: $(PROTO_XLIBS) 32 | 33 | # ------------------- 34 | 35 | xtrans_VERSION = 1.2.7 36 | libX11_VERSION = 1.5.0 37 | libXext_VERSION = 1.3.1 38 | libFS_VERSION = 1.0.4 39 | libICE_VERSION = 1.0.8 40 | libSM_VERSION = 1.2.1 41 | libXScrnSaver_VERSION = 1.2.2 42 | libXt_VERSION = 1.1.3 43 | libXmu_VERSION = 1.1.1 44 | libXpm_VERSION = 3.5.10 45 | libXaw_VERSION = 1.0.11 46 | libXfixes_VERSION = 5.0 47 | libXcomposite_VERSION = 0.4.4 48 | libXrender_VERSION = 0.9.7 49 | libXcursor_VERSION = 1.1.13 50 | libXdamage_VERSION = 1.1.4 51 | libfontenc_VERSION = 1.1.1 52 | libXfont_VERSION = 1.4.5 53 | libXfont_EXTRA_CONFIG = --disable-devel-docs 54 | libXft_VERSION = 2.3.1 55 | libXi_VERSION = 1.7.1 56 | libXrandr_VERSION = 1.4.0 57 | libXinerama_VERSION = 1.1.2 58 | libXres_VERSION = 1.0.6 59 | libXtst_VERSION = 1.2.1 60 | libXv_VERSION = 1.0.7 61 | libXvMC_VERSION = 1.0.7 62 | libXxf86dga_VERSION = 1.1.3 63 | libXxf86vm_VERSION = 1.1.2 64 | libdmx_VERSION = 1.1.2 65 | libpciaccess_VERSION = 0.13.1 66 | libxkbfile_VERSION = 1.0.8 67 | xkeyboard-config_VERSION=2.8 68 | xkeyboard-config_EXTRA_CONFIG = --with-xkb-rules-symlink=xorg 69 | 70 | XLIBS2 = xtrans libX11 libXext libFS libICE libSM libXScrnSaver libXt libXmu libXpm libXaw libXfixes \ 71 | libXcomposite libXrender libXcursor libXdamage libfontenc libXfont libXft libXi libXrandr libXinerama \ 72 | libXres libXtst libXv libXvMC libXxf86dga libXxf86vm libdmx libpciaccess libxkbfile xkeyboard-config 73 | xlibs2: $(XLIBS2) 74 | 75 | # ------------------- 76 | 77 | libpng_VERSION = 1.6.2 78 | libjpeg-turbo_VERSION = 1.2.1 79 | libjpeg-turbo_EXTRA_CONFIG = --with-jpeg8 80 | pixman_VERSION = 0.28.2 81 | pixman_EXTRA_CONFIG = --disable-openmp 82 | pixman_EXTRA_CFLAGS = -DPIXMAN_NO_TLS 83 | libpthread-stubs_VERSION = 0.1 84 | freetype_VERSION = 2.5.0.1 85 | XPRE = libpng libjpeg-turbo pixman libpthread-stubs 86 | xpre: $(XPRE) freetype 87 | 88 | # ------------------- 89 | 90 | font-util_VERSION = 1.3.0 91 | encodings_VERSION = 1.0.4 92 | font-bh-75dpi_VERSION = 1.0.3 93 | font-bh-ttf_VERSION = 1.0.3 94 | font-adobe-75dpi_VERSION = 1.0.3 95 | XFONTS = font-util encodings 96 | xfonts: $(XFONTS) font-bh-75dpi font-bh-ttf font-adobe-75dpi 97 | 98 | # ------------------- 99 | 100 | util-macros_VERSION = 1.17 101 | libXau_VERSION = 1.0.7 102 | fontconfig_VERSION = 2.10.93 103 | fontconfig_EXTRA_CONFIG = --disable-docs 104 | libXdmcp_VERSION = 1.1.1 105 | xbitmaps_VERSION = 1.1.1 106 | libxcb_VERSION = 1.8.1 107 | libxcb_EXTRA_CONFIG = --disable-build-docs 108 | xcb-util_VERSION = 0.3.9 109 | XLIBS = util-macros fontconfig libXau libXdmcp xbitmaps xcb-util 110 | xlibs: $(XLIBS) libxcb 111 | 112 | # ------------------- 113 | 114 | twm_VERSION = 1.0.7 115 | xeyes_VERSION = 1.1.1 116 | xclock_VERSION = 1.0.6 117 | xinit_VERSION = 1.3.2 118 | xinit_EXTRA_CONFIG = --with-xinitdir=/etc/X11/app-defaults 119 | xterm_VERSION = 295 120 | xkbcomp_VERSION = 1.2.4 121 | XAPPS = twm xeyes xclock xinit xkbcomp xauth xset 122 | xauth_VERSION = 1.0.7 123 | xset_VERSION = 1.2.2 124 | xapps: $(XAPPS) xterm 125 | 126 | # ------------------- 127 | 128 | Mesa_VERSION = 9.1.4 129 | Mesa_EXTRA_CONFIG= --disable-dri --enable-xlib-glx --with-dri-drivers= --with-gallium-drivers= 130 | 131 | xorg-server_VERSION = 1.12.2 132 | xorg-server_EXTRA_CONFIG = --disable-glx-tls --disable-dri --disable-dri2 --disable-xselinux --disable-composite --disable-xdm-auth-1 \ 133 | --disable-xorg --disable-standalone-xpbproxy --disable-xwin --enable-kdrive --enable-xfbdev \ 134 | --disable-xfake --disable-config-udev 135 | 136 | .PHONY : xpre xfonts xlibs xapps xlibs2 xproto $(XLIBS) $(XLIBS2) $(XPRE) $(PROTO_XLIBS) 137 | 138 | 139 | $(XPRE): 140 | @echo Compile $@-$($@_VERSION) 141 | $(call extractpatch,$@,$($@_VERSION)) 142 | cd src/$@; CFLAGS="-Os $($@_EXTRA_CFLAGS)" ./configure $(CONFIG_HOST) $($@_EXTRA_CONFIG) 143 | cd src/$@; make 144 | cd src/$@; make install-strip DESTDIR=$(SYSROOT) 145 | sed -i~ -e "s;libdir='/usr;libdir='$(SYSROOT)/usr;" $(SYSROOT)/usr/lib/*.la 146 | 147 | $(XLIBS) $(XLIBS2) $(PROTO_XLIBS) $(XFONTS): 148 | @echo Compile $@-$($@_VERSION) 149 | $(call extractpatch,$@,$($@_VERSION)) 150 | cd src/$@; CFLAGS="-Os $($@_EXTRA_CFLAGS)" ./configure $(CONFIG_HOST) --sysconfdir=/etc --localstatedir=/var --disable-static $($@_EXTRA_CONFIG) 151 | cd src/$@; make 152 | #cd src/$@; find . -type f -name "*.la" -print0 | xargs -r -0 sed -i -e "s;libdir='/usr;libdir='$(SYSROOT)/usr;" 153 | cd src/$@; make install-strip DESTDIR=$(SYSROOT) 154 | sed -i~ -e "s;libdir='/usr;libdir='$(SYSROOT)/usr;" $(SYSROOT)/usr/lib/*.la 155 | sed -i~ -e "s; /usr/lib/libxcb.la; $(SYSROOT)/usr/lib/libxcb.la;" $(SYSROOT)/usr/lib/*.la 156 | sed -i~ -e "s; /usr/lib/libX11.la; $(SYSROOT)/usr/lib/libX11.la;" $(SYSROOT)/usr/lib/*.la 157 | 158 | $(XAPPS): 159 | @echo Compile $@-$($@_VERSION) 160 | $(call extractpatch,$@,$($@_VERSION)) 161 | cd src/$@; CFLAGS="-Os $($@_EXTRA_CFLAGS)" ./configure $(CONFIG_HOST) --sysconfdir=/etc --localstatedir=/var --disable-static $($@_EXTRA_CONFIG) 162 | cd src/$@; make 163 | cd src/$@; make install-strip DESTDIR=$(SYSROOT) 164 | 165 | xterm: 166 | @echo Compile $@-$($@_VERSION) 167 | $(call extractpatch,$@,$($@_VERSION)) 168 | cd src/$@; sed -i '/v0/,+1s/new:/new:kb=^?:/' termcap 169 | cd src/$@; echo -e '\tkbs=\\177,' >>terminfo 170 | cd src/$@; TERMINFO=/usr/share/terminfo CFLAGS="-Os $($@_EXTRA_CFLAGS)" ./configure $(CONFIG_HOST) --enable-luit --enable-wide-chars --with-app-defaults=/etc/X11/app-defaults 171 | cd src/$@; make 172 | cd src/$@; make install-strip DESTDIR=$(SYSROOT) 173 | 174 | font-bh-75dpi font-bh-ttf font-adobe-75dpi: 175 | @echo Compile $@-$($@_VERSION) 176 | $(call extractpatch,$@,$($@_VERSION)) 177 | cd src/$@; CFLAGS="-Os $($@_EXTRA_CFLAGS)" ./configure $(CONFIG_HOST) --sysconfdir=/etc --localstatedir=/var --disable-static $($@_EXTRA_CONFIG) 178 | cd src/$@; make UTIL_DIR=$(SYSROOT)/usr/share/fonts/X11/util 179 | cd src/$@; make install-strip DESTDIR=$(SYSROOT) 180 | 181 | libxcb: 182 | @echo Compile $@-$($@_VERSION) 183 | $(call extractpatch,$@,$($@_VERSION)) 184 | cd src/$@; CFLAGS="-Os $($@_EXTRA_CFLAGS)" ./configure $(CONFIG_HOST) --sysconfdir=/etc --localstatedir=/var --disable-static $($@_EXTRA_CONFIG) 185 | cd src/$@; make 186 | cd src/$@; find . -type f -name "*.la" -print0 | xargs -r -0 sed -i -e "s;libdir='/usr;libdir='$(SYSROOT)/usr;" 187 | cd src/$@; make install-strip DESTDIR=$(SYSROOT) 188 | sed -i~ -e "s;libdir='/usr;libdir='$(SYSROOT)/usr;" $(SYSROOT)/usr/lib/*.la 189 | sed -i~ -e "s; /usr/lib/libxcb.la; $(SYSROOT)/usr/lib/libxcb.la;" $(SYSROOT)/usr/lib/*.la 190 | sed -i~ -e "s; /usr/lib/libX11.la; $(SYSROOT)/usr/lib/libX11.la;" $(SYSROOT)/usr/lib/*.la 191 | 192 | freetype: 193 | @echo Compile $@-$($@_VERSION) 194 | $(call extractpatch,$@,$($@_VERSION)) 195 | cd src/$@; CFLAGS="-Os $($@_EXTRA_CFLAGS)" ./configure $(CONFIG_HOST) $($@_EXTRA_CONFIG) 196 | cd src/$@; sed -i~ -e "s;-L/usr/lib ;;" builds/unix/unix-cc.mk 197 | cd src/$@; make 198 | cd src/$@; make install DESTDIR=$(SYSROOT) 199 | sed -i~ -e "s;libdir='/usr;libdir='$(SYSROOT)/usr;" $(SYSROOT)/usr/lib/*.la 200 | 201 | #Applying patch http://lists.freedesktop.org/archives/mesa-users/2013-February/000569.html 202 | 203 | Mesa: 204 | @echo Compile $@-$($@_VERSION) 205 | $(call extractpatch,$@,$($@_VERSION)) 206 | cd src/$@; patch -Np1 -i ../../patches/MesaLib-9.1-no_ranlib.patch 207 | cd src/$@; patch -Np1 -i ../../patches/MesaLib-9.1.4-add_xdemos-1.patch 208 | cd src/$@; autoreconf -fi 209 | cd src/$@; CFLAGS="-Os $($@_EXTRA_CFLAGS)" ./configure $(CONFIG_HOST) $($@_EXTRA_CONFIG) 210 | cd src/$@; make install-strip DESTDIR=$(SYSROOT) 211 | cd src/$@; CC=or1k-linux-gcc make -C xdemos DEMOS_PREFIX=/usr V=1 212 | cd src/$@; sed -i~ -e "s;ifneq (;ifeq (;" xdemos/Makefile 213 | cd src/$@; make -C xdemos DEMOS_PREFIX=/usr DESTDIR=$(SYSROOT) install 214 | sed -i~ -e "s;libdir='/usr;libdir='$(SYSROOT)/usr;" $(SYSROOT)/usr/lib/*.la 215 | cp src/Mesa/include/GL/internal/dri_interface.h $(SYSROOT)/usr/include/GL/internal/ 216 | 217 | 218 | #nano /opt/or1k/or1k-linux/sys-root/usr/include/GL/internal/dri_interface.h 219 | 220 | xorg-server: 221 | @echo Compile $@-$($@_VERSION) 222 | $(call extractpatch,$@,$($@_VERSION)) 223 | cd src/$@; echo "#define IMAGE_BYTE_ORDER MSBFirst" >> include/servermd.h 224 | cd src/$@; echo "#define BITMAP_BIT_ORDER MSBFirst" >> include/servermd.h 225 | cd src/$@; echo "#define GLYPHPADBYTES 4" >> include/servermd.h 226 | cd src/$@; CFLAGS="-Os $($@_EXTRA_CFLAGS)" ./configure $(CONFIG_HOST) $($@_EXTRA_CONFIG) 227 | cd src/$@; make 228 | cd src/$@; make install-strip DESTDIR=$(SYSROOT) 229 | sed -i~ -e "s;libdir='/usr;libdir='$(SYSROOT)/usr;" $(SYSROOT)/usr/lib/*.la 230 | 231 | 232 | -------------------------------------------------------------------------------- /patches/or1k-linux-uclibc-sim.exp: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Copyright (C) 2010 Embecosm Limited 4 | 5 | # Contributor Jeremy Bennett 6 | # Contributor Joern Rennecke 7 | 8 | # This file is a board description for testing OpenRISC with uClibc and 9 | # Or1ksim running Linux. 10 | 11 | # This program is free software; you can redistribute it and/or modify it 12 | # under the terms of the GNU General Public License as published by the Free 13 | # Software Foundation; either version 3 of the License, or (at your option) 14 | # any later version. 15 | 16 | # This program is distributed in the hope that it will be useful, but WITHOUT 17 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 18 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 19 | # more details. 20 | 21 | # You should have received a copy of the GNU General Public License along 22 | # with this program. If not, see . 23 | 24 | # ----------------------------------------------------------------------------- 25 | # For telnet targets we need to define some functions. 26 | 27 | # ----------------------------------------------------------------------------- 28 | # Custom proc to close a telnet session 29 | 30 | # @param[in] connhost The connected host being closed. 31 | # ----------------------------------------------------------------------------- 32 | proc telnet_close {connhost} { 33 | global board_info 34 | 35 | verbose "telnet_close: connhost $connhost" 3 36 | 37 | # Close the session 38 | set spawn_id [board_info $connhost fileid] 39 | catch close -i $spawn_id 40 | catch wait -i $spawn_id 41 | 42 | # Check we really succeeded in closing 43 | if [board_info $connhost exists fileid] { 44 | verbose "telnet_close: deleting remaining fileid" 45 | unset board_info(${connhost},fileid) 46 | } 47 | } 48 | 49 | 50 | # ----------------------------------------------------------------------------- 51 | # Custom proc to check if we have had too many failures 52 | 53 | # @param[in] boardname The board being closed. 54 | # ----------------------------------------------------------------------------- 55 | proc telnet_failure_check { connhost errmess } { 56 | global board_info 57 | 58 | # Get the maximum failure count 59 | set max_fc 10 60 | 61 | if [board_info $connhost exists max_failure_count] { 62 | set max_fc [board_info $connhost max_failure_count] 63 | } 64 | verbose "telnet_failure_check: Max failure count $max_fc" 65 | 66 | # Increment the current failure count 67 | set fc 1 68 | if [board_info $connhost exists failure_count] { 69 | verbose "telnet_failure_check: Incrementing failure count" 70 | set fc [expr [board_info $connhost failure_count] + 1] 71 | } 72 | set board_info($connhost,failure_count) $fc 73 | verbose "telnet_failure_check: current failure count is $fc" 74 | 75 | # Die if we are over the limit 76 | if {$fc >= $max_fc} { 77 | error "Too many failures: $errmess" 78 | } 79 | } 80 | 81 | 82 | # ----------------------------------------------------------------------------- 83 | # Custom proc to exec programs using telnet 84 | 85 | # We seem to only pass in the first of the arguments supplied to the command. 86 | 87 | # The timeout is a mess. It seems to always be 10, not the timeout needed to 88 | # execute a regression test (typicall 300 seconds). Fixed by not making it 89 | # global and using our own timeout data. 90 | 91 | # It also seems that only the first argument is passed. 92 | 93 | # @param[in] hostname The board we are telnetting to 94 | # @param[in] cmd The command to run 95 | # @param[in] args Arguments to the command 96 | 97 | # @return A list of the return code (-1 on failure) and any error message. 98 | # ----------------------------------------------------------------------------- 99 | proc telnet_exec {hostname cmd args} { 100 | global board_info 101 | global verbose 102 | 103 | # Get the connected host name, if it exists. This code matches 104 | # telnet_open. 105 | verbose "telnet_exec: original hostname is $hostname" 106 | 107 | if {[board_info $hostname exists name]} { 108 | set connhost [board_info $hostname name] 109 | } else { 110 | set connhost $hostname 111 | } 112 | verbose "telnet_exec: connhost is $connhost" 113 | 114 | if [board_info $connhost exists hostname] { 115 | set hostname [board_info $connhost hostname] 116 | } 117 | verbose "telnet_exec: hostname is $hostname" 118 | 119 | # Get the first argument, if any. 120 | if { [llength $args] > 0 } { 121 | set pargs [lindex $args 0]; 122 | } else { 123 | set pargs "" 124 | } 125 | 126 | verbose "telnet_exec: executing on $connhost, command \"$cmd\", pargs \"$pargs\"" 127 | 128 | # Just check if we have more args. Potentially a second arg is an input 129 | # file. 130 | if { [llength $args] > 1 } { 131 | set tinp [lindex $args 1] 132 | if {$tinp != {}} { 133 | verbose "telnet_exec: long args: $args" 134 | } 135 | } 136 | 137 | # Set the shell prompt 138 | if [board_info $connhost exists shell_prompt] { 139 | set shell_prompt [board_info $connhost shell_prompt] 140 | } elseif ![info exists shell_prompt] { 141 | # if no prompt, then set it to something generic 142 | set shell_prompt "\[^\r\n\]*\[$#\] " 143 | } 144 | 145 | # Start a new telnet session if one doesn't already exist. If sucessful 146 | # the fileid field associated with $connhost will be set to the spawn_id 147 | # of the new telnet process. 148 | if ![board_info $connhost exists fileid] { 149 | verbose "telnet_exec: opening new telnet connection" 150 | if {[telnet_open $connhost] == -1} { 151 | return [list -1 "telnet to $hostname failed for $cmd, couldn't begin telnet session"] 152 | } 153 | } 154 | 155 | # The spawn_id we'll use throughout 156 | set spawn_id [board_info $connhost fileid] 157 | verbose "telnet_exec: spawn_id is now $spawn_id" 158 | 159 | # Use a relatively short timeout for most operations. Only the command 160 | # itself uses a long timeout. 161 | set timeout 30 162 | 163 | #Hit enter to make sure you get a shell prompt 164 | send -i $spawn_id "\r" 165 | 166 | expect { 167 | # A prompt indicates the current session is alive 168 | -i $spawn_id -re "$shell_prompt" { 169 | verbose "telnet_exec: got prompt at start" 170 | } 171 | -i $spawn_id default { 172 | # Timeout or EOF. Die if we have had too many failures 173 | telnet_failure_check $connhost "no prompt at telnet start" 174 | 175 | # Try closing the connection and reopening. 176 | telnet_close $connhost 177 | if {[telnet_open $connhost] != -1} { 178 | set spawn_id [board_info $connhost fileid] 179 | verbose "telnet_exec: new telnet session, spawn_id: $spawn_id" 180 | send -i $spawn_id "\r" 181 | exp_continue 182 | } else { 183 | return [list -1 "telnet to $hostname failed for $cmd, couldn't get a shell prompt"] 184 | } 185 | } 186 | } 187 | 188 | # Send the command. We can't cope with any input, so only the first 189 | # argument (group) is sent. 190 | send -i $spawn_id -- "$cmd $pargs\r" 191 | 192 | # We really should get the command echoed back immediately. This is a good 193 | # way of slurping up unexpected prompts. We first swap out any characters 194 | # from the command and args that might cause us grief. 195 | regsub -all "\\+" "$cmd $pargs" "." cmdpargs 196 | verbose "telnet_exec: command match string is \"$cmdpargs\"" 197 | 198 | expect { 199 | -i $spawn_id -re "$cmdpargs" { 200 | verbose "telnet_exec: got command echoed back" 201 | } 202 | -i $spawn_id default { 203 | verbose "telnet_exec: command not echoed: command expect_out(buffer): \"$expect_out(buffer)\"" 204 | } 205 | } 206 | 207 | # Set the telnet command custom timeout to wait for the command to 208 | # complete executing. 209 | if [board_info $connhost exists telnet_exec_timeout] { 210 | set timeout [board_info $connhost telnet_exec_timeout] 211 | verbose "telnet_exec: command timeout set to $timeout" 212 | } else { 213 | # Appropriate default 214 | set timeout 300 215 | verbose "telnet_exec: command timeout set to default value $timeout" 216 | } 217 | 218 | expect { 219 | -i $spawn_id -re "$shell_prompt" { 220 | verbose "telnet_exec: got prompt after command" 221 | } 222 | -i $spawn_id default { 223 | # Give up on timeout or EOF 224 | telnet_close $connhost 225 | return [list -1 "telnet to $hostname for $cmd $pargs failed (timeout)"] 226 | } 227 | } 228 | 229 | # Remove unnecessary strings from the output string 230 | verbose "telnet_exec: command expect_out(buffer): \"$expect_out(buffer)\"" 231 | regsub -all $cmdpargs "$expect_out(buffer)" {} output 232 | regsub "$shell_prompt" $output {} output 233 | regsub -all "\[\r\n\]" $output {} output 234 | 235 | if {$output == ""} { 236 | set output "(no output)" 237 | } else { 238 | set output "\"$output\"" 239 | } 240 | 241 | verbose "telnet_exec: command output $output" 242 | 243 | # Check the return status. Use a short timeout for this and following 244 | # commands. 245 | set timeout 30 246 | send -i $spawn_id "echo \$?\r" 247 | 248 | # Once again, look for the "echo" reflected back as a way of slurping up 249 | # unexpected prompts. We don't worry about timeout here - we'll sort that 250 | # out later. 251 | expect { 252 | -i $spawn_id -re "echo \\$\\?" { 253 | verbose "telnet_exec: got \"echo\" echoed back" 254 | } 255 | -i $spawn_id default { 256 | verbose "telnet_exec: echo not echoed: command expect_out(buffer): \"$expect_out(buffer)\"" 257 | } 258 | } 259 | 260 | # Look for the shell prompt. Don't worry about timeout for now. It only 261 | # really matters if we don't get a valid status, which we'll discover 262 | # below. 263 | expect { 264 | -i $spawn_id -re "$shell_prompt" { 265 | verbose "telnet_exec: got status shell prompt" 266 | } 267 | -i $spawn_id default { 268 | verbose "telnet_exec: no status shell prompt: command expect_out(buffer): \"$expect_out(buffer)\"" 269 | } 270 | } 271 | 272 | # Regsub the output to get the status number 273 | verbose "telnet_exec: status expect_out(buffer): \"$expect_out(buffer)\"" 274 | regsub -all {echo \$\?} $expect_out(buffer) {} status 275 | regsub "$shell_prompt" $status {} status 276 | regsub -all "\[\r\n \]" $status {} status 277 | verbose "telnet_exec: status \"$status\"" 278 | 279 | # This shouldn't be neccessary... 280 | if {[regexp {[0123456789]+} $status] != 1} { 281 | warning "status not a number (\"$status\"), setting to 1" 282 | verbose "telnet_exec: status (\"$status\"), expect_out(buffer): \"$expect_out(buffer)\"" 283 | set status 1 284 | 285 | # Die if we have had too many failures like this. 286 | telnet_failure_check $connhost "bad status" 287 | } 288 | 289 | if {$status == 0} { 290 | return [list "0" "$output"] 291 | } else { 292 | return [list "1" "$output"] 293 | } 294 | } 295 | 296 | 297 | # ----------------------------------------------------------------------------- 298 | # For FTP we need to redefine some existing functions to add additional 299 | # features. 300 | 301 | # ----------------------------------------------------------------------------- 302 | # Upload REMOTEFILE from HOST as LOCALFILE by FTP 303 | 304 | # This version swaps the argument order, which is what the regression test 305 | # seems to expect. 306 | 307 | # Also allows a custom timeout to be set. 308 | 309 | # @param[in] host The host we are connected to. 310 | # @param[in] localfile The local file to send 311 | # @param[in] remotefile Name of file at remote end. 312 | # ----------------------------------------------------------------------------- 313 | proc ftp_upload {host localfile remotefile} { 314 | global board_info 315 | 316 | set prompt "ftp>" 317 | verbose "ftping $remotefile from $host to $localfile" 318 | 319 | # JPB to set custom timeout (not marked global, so we don't need to save 320 | # and restore) 321 | if [board_info $host exists ftp_upload_timeout] { 322 | set timeout [board_info $host ftp_upload_timeout] 323 | verbose "FTP upload timeout set to $timeout" 324 | } else { 325 | # Appropriate default 326 | set timeout 15 327 | verbose "FTP upload timeout set to default value $timeout" 328 | } 329 | 330 | set spawn_id [ftp_open $host] 331 | if {$spawn_id < 0} { 332 | return "" 333 | } 334 | set loop 1 335 | 336 | while {$loop} { 337 | send -i $spawn_id "get $remotefile $localfile\n" 338 | expect { 339 | -i $spawn_id -re ".*Too many open files.*$prompt" { 340 | ftp_close $host 341 | } 342 | -i $spawn_id -re ".*No such file or directory.*$prompt" { 343 | set loop 0 344 | set remotefile "" 345 | } 346 | -i $spawn_id -re "(^|\[\r\n\])226.*$prompt" {set loop 0} 347 | -i $spawn_id -re "(^|\[\r\n\])\[0-9\]\[0-9\]\[0-9\].*$prompt" { 348 | set loop 0 349 | set remotefile "" 350 | } 351 | -i $spawn_id default { 352 | ftp_close $host 353 | } 354 | } 355 | if {$loop} { 356 | set spawn_id [ftp_open $host] 357 | if {$spawn_id < 0} { 358 | return "" 359 | } 360 | } 361 | } 362 | return $localfile 363 | } 364 | 365 | 366 | # ----------------------------------------------------------------------------- 367 | # Download LOCALFILE to HOST as REMOTEFILE by FTP 368 | 369 | # This version takes a user specified timeout, which we need for our slow 370 | # simulated connection. 371 | 372 | # @param[in] host The host we are connected to. 373 | # @param[in] localfile The local file to send 374 | # @param[in] remotefile Name of file at remote end. 375 | # ----------------------------------------------------------------------------- 376 | proc ftp_download {host localfile remotefile} { 377 | global board_info 378 | 379 | set prompt "ftp>" 380 | 381 | verbose "putting $localfile $remotefile" 382 | 383 | if [board_info $host exists hostname] { 384 | set remotehost [board_info $host hostname] 385 | } else { 386 | set remotehost $host 387 | } 388 | 389 | set spawn_id [ftp_open $host] 390 | if {$spawn_id < 0} { 391 | return "" 392 | } 393 | set loop 1 394 | 395 | # JPB to set custom timeout (not marked global, so we don't need to save 396 | # and restore) 397 | if [board_info $host exists ftp_download_timeout] { 398 | set timeout [board_info $host ftp_download_timeout] 399 | verbose "FTP download timeout set to $timeout" 400 | } else { 401 | # Appropriate default 402 | set timeout 15 403 | verbose "FTP download timeout set to default value $timeout" 404 | } 405 | 406 | while {$loop} { 407 | send -i $spawn_id "put $localfile $remotefile\n" 408 | expect { 409 | -i $spawn_id -re ".*Too many open files.*$prompt" { 410 | ftp_close $host 411 | } 412 | -i $spawn_id -re ".*No such file or directory.*$prompt" { 413 | set loop 0 414 | set remotefile "" 415 | } 416 | -re "(^|\[\r\n\])150.*connection for (.*) \[(\]\[0-9.,\]+\\)\[\r\n\]" { 417 | set remotefile $expect_out(2,string) 418 | exp_continue 419 | } 420 | -i $spawn_id -re "(^|\[\r\n\])226.*$prompt" { 421 | set loop 0 422 | } 423 | -i $spawn_id -re "Timeout.*$prompt" { 424 | ftp_close $host 425 | } 426 | -i $spawn_id -re "(^|\[\r\n\])\[0-9\]\[0-9\]\[0-9\].*$prompt" { 427 | set loop 0 428 | set remotefile "" 429 | } 430 | -i $spawn_id default { 431 | ftp_close $host 432 | } 433 | } 434 | if {$loop} { 435 | set spawn_id [ftp_open $host] 436 | if {$spawn_id < 0} { 437 | return "" 438 | } 439 | } 440 | } 441 | return $remotefile 442 | } 443 | 444 | 445 | # This is a list of toolchains that are supported on this board. 446 | set_board_info target_install {or1k-linux} 447 | 448 | # No multilib options needed by default. 449 | process_multilib_options "" 450 | 451 | # Load the generic configuration for this board. This will define a basic set 452 | # of routines needed by the tool to communicate with the board. 453 | load_generic_config "unix" 454 | 455 | # Set up remote target info. We select the IP address using an external 456 | # program which knows about all available Linuxes. 457 | # set linux_hostname [exec [file dirname $env(DEJAGNUSCRIPTS)]/get-ip.sh --rotate] 458 | set linux_hostname $env(OR1K_IP) 459 | set_board_info hostname $linux_hostname 460 | send_user "OR1K target hostname is $linux_hostname\n" 461 | 462 | set_board_info username root 463 | 464 | # Use the installed compilers to ensure we get search paths that will find 465 | # uClibc. 466 | send_user "set_board_info compiler /opt/or1k/bin/or1k-linux-gcc\n" 467 | global GCC_UNDER_TEST 468 | set GCC_UNDER_TEST "/opt/or1k/bin/or1k-linux-gcc" 469 | global GXX_UNDER_TEST 470 | set GXX_UNDER_TEST "/opt/or1k/bin/or1k-linux-g++" 471 | set_board_info compiler /opt/or1k/bin/or1k-linux-gcc 472 | set_board_info c++compiler /opt/or1k/bin/or1k-linux-g++ 473 | set target_alias "or1k-linux" 474 | 475 | set_board_info connect telnet 476 | set_board_info shell_prompt "\[^\r\n\]*# " 477 | set_board_info telnet_username "root" 478 | set_board_info telnet_password "" 479 | set_board_info telnet_exec_timeout 1200 480 | 481 | set_board_info file_transfer ftp 482 | set_board_info ftp_username root 483 | set_board_info ftp_password "" 484 | set_board_info ftp_download_timeout 120 485 | set_board_info ftp_upload_timeout 120 486 | 487 | # Options for the simulator 488 | # set cfg_file [lookfor_file ${srcdir} libgloss/or1k/sim.cfg] 489 | #set_board_info sim,options "-a \"-f ${cfg_file}\"" 490 | 491 | # We only support uClibc on this target. We assume that all multilib options 492 | # have been specified before we get here. 493 | #set_board_info compiler "[find_gcc]" 494 | 495 | # We need to define this flag to generate default .gcda files if we are using 496 | # a stock compiler, without the profopt.exp changes. No problem with doubling 497 | # up the argument in normal circumstances. 498 | set_board_info cflags "-fprofile-dir=." 499 | set_board_info cxxflags "-fprofile-dir=." 500 | 501 | # No linker script needed. 502 | set_board_info ldscript "" 503 | 504 | # This simulator isn't slow. 505 | set_board_info slow_simulator 0 506 | 507 | # Can't pass arguments to programs on this target.. 508 | set_board_info noargs 1 509 | 510 | # Used by a few gcc.c-torture testcases to delimit how large the stack can 511 | # be. 512 | set_board_info gcc,stack_size 65536 513 | 514 | # GDB options 515 | 516 | # We can't do input in GDB (yet! HA!). It *will* do output, hurrah. 517 | set_board_info gdb,noinferiorio 1 518 | # Or pass arguments. 519 | set_board_info gdb,noargs 1 520 | set_board_info noargs 1 521 | # And there's no support for signals. 522 | set_board_info gdb,nosignals 1 523 | -------------------------------------------------------------------------------- /patches/or1ksim.cfg: -------------------------------------------------------------------------------- 1 | /* sim.cfg -- Simulator configuration script file 2 | Copyright (C) 2001-2002, Marko Mlinar, markom@opencores.org 3 | 4 | This file is part of OpenRISC 1000 Architectural Simulator. 5 | It contains the default configuration and help about configuring 6 | the simulator. 7 | 8 | This program is free software; you can redistribute it and/or modify 9 | it under the terms of the GNU General Public License as published by 10 | the Free Software Foundation; either version 2 of the License, or 11 | (at your option) any later version. 12 | 13 | This program is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with this program; if not, write to the Free Software 20 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ 21 | 22 | 23 | /* INTRODUCTION 24 | 25 | The ork1sim has various parameters, that are set in configuration files 26 | like this one. The user can switch between configurations at startup by 27 | specifying the required configuration file with the -f option. 28 | If no configuration file is specified or1ksim searches for the default 29 | configuration file sim.cfg. First it searches for './sim.cfg'. If this 30 | file is not found, it searches for '~/or1k/sim.cfg'. If this file is 31 | not found too, it reverts to the built-in default configuration. 32 | 33 | NOTE: Users should not rely on the built-in configuration, since the 34 | default configuration may differ between version. 35 | Rather create a configuration file that sets all critical values. 36 | 37 | This file may contain (standard C) comments only - no // support. 38 | 39 | Configure files may be be included, using: 40 | include "file_name_to_include" 41 | 42 | Like normal configuration files, the included file is divided into 43 | sections. Each section is described in detail also. 44 | 45 | Some section have subsections. One example of such a subsection is: 46 | 47 | device 48 | instance specific parameters... 49 | enddevice 50 | 51 | which creates a device instance. 52 | */ 53 | 54 | 55 | /* MEMORY SECTION 56 | 57 | This section specifies how the memory is generated and the blocks 58 | it consists of. 59 | 60 | type = random/unknown/pattern 61 | Specifies the initial memory values. 62 | 'random' generates random memory using seed 'random_seed'. 63 | 'pattern' fills memory with 'pattern'. 64 | 'unknown' does not specify how memory should be generated, 65 | leaving the memory in a undefined state. This is the fastest 66 | option. 67 | 68 | random_seed = 69 | random seed for randomizer, used if type = 'random'. 70 | 71 | pattern = 72 | pattern to fill memory, used if type = 'pattern'. 73 | 74 | nmemories = 75 | number of memory instances connected 76 | 77 | baseaddr = 78 | memory start address 79 | 80 | size = 81 | memory size 82 | 83 | name = "" 84 | memory block name 85 | 86 | ce = 87 | chip enable index of the memory instance 88 | 89 | mc = 90 | memory controller this memory is connected to 91 | 92 | delayr = 93 | cycles, required for read access, -1 if instance does not support reading 94 | 95 | delayw = 96 | cycles, required for write access, -1 if instance does not support writing 97 | 98 | log = "" 99 | filename, where to log memory accesses to, no log, if log command is not specified 100 | */ 101 | 102 | 103 | section memory 104 | /*random_seed = 12345 105 | type = random*/ 106 | pattern = 0x00 107 | type = unknown /* Fastest */ 108 | 109 | name = "FLASH" 110 | ce = 0 111 | mc = 0 112 | baseaddr = 0xf0000000 113 | size = 0x01000000 114 | delayr = 1 115 | delayw = -1 116 | end 117 | 118 | section memory 119 | /*random_seed = 12345 120 | type = random*/ 121 | pattern = 0x00 122 | type = unknown /* Fastest */ 123 | 124 | name = "RAM" 125 | ce = 1 126 | mc = 0 127 | baseaddr = 0x00000000 128 | size = 0x04000000 129 | delayr = 1 130 | delayw = 1 131 | end 132 | 133 | /* IMMU SECTION 134 | 135 | This section configures the Instruction Memory Manangement Unit 136 | 137 | enabled = 0/1 138 | '0': disabled 139 | '1': enabled 140 | (NOTE: UPR bit is set) 141 | 142 | nsets = 143 | number of ITLB sets; must be power of two 144 | 145 | nways = 146 | number of ITLB ways 147 | 148 | pagesize = 149 | instruction page size; must be power of two 150 | 151 | entrysize = 152 | instruction entry size in bytes 153 | 154 | ustates = 155 | number of ITLB usage states (2, 3, 4 etc., max is 4) 156 | 157 | hitdelay = 158 | number of cycles immu hit costs 159 | 160 | missdelay = 161 | number of cycles immu miss costs 162 | */ 163 | 164 | section immu 165 | enabled = 1 166 | nsets = 64 167 | nways = 1 168 | pagesize = 8192 169 | hitdelay = 0 170 | missdelay = 0 171 | end 172 | 173 | 174 | /* DMMU SECTION 175 | 176 | This section configures the Data Memory Manangement Unit 177 | 178 | enabled = 0/1 179 | '0': disabled 180 | '1': enabled 181 | (NOTE: UPR bit is set) 182 | 183 | nsets = 184 | number of DTLB sets; must be power of two 185 | 186 | nways = 187 | number of DTLB ways 188 | 189 | pagesize = 190 | data page size; must be power of two 191 | 192 | entrysize = 193 | data entry size in bytes 194 | 195 | ustates = 196 | number of DTLB usage states (2, 3, 4 etc., max is 4) 197 | 198 | hitdelay = 199 | number of cycles dmmu hit costs 200 | 201 | missdelay = 202 | number of cycles dmmu miss costs 203 | */ 204 | 205 | section dmmu 206 | enabled = 1 207 | nsets = 64 208 | nways = 1 209 | pagesize = 8192 210 | hitdelay = 0 211 | missdelay = 0 212 | end 213 | 214 | 215 | /* IC SECTION 216 | 217 | This section configures the Instruction Cache 218 | 219 | enabled = 0/1 220 | '0': disabled 221 | '1': enabled 222 | (NOTE: UPR bit is set) 223 | 224 | nsets = 225 | number of IC sets; must be power of two 226 | 227 | nways = 228 | number of IC ways 229 | 230 | blocksize = 231 | IC block size in bytes; must be power of two 232 | 233 | ustates = 234 | number of IC usage states (2, 3, 4 etc., max is 4) 235 | 236 | hitdelay = 237 | number of cycles ic hit costs 238 | 239 | missdelay = 240 | number of cycles ic miss costs 241 | */ 242 | 243 | section ic 244 | enabled = 0 245 | nsets = 512 246 | nways = 1 247 | blocksize = 16 248 | hitdelay = 1 249 | missdelay = 1 250 | end 251 | 252 | 253 | /* DC SECTION 254 | 255 | This section configures the Data Cache 256 | 257 | enabled = 0/1 258 | '0': disabled 259 | '1': enabled 260 | (NOTE: UPR bit is set) 261 | 262 | nsets = 263 | number of DC sets; must be power of two 264 | 265 | nways = 266 | number of DC ways 267 | 268 | blocksize = 269 | DC block size in bytes; must be power of two 270 | 271 | ustates = 272 | number of DC usage states (2, 3, 4 etc., max is 4) 273 | 274 | load_hitdelay = 275 | number of cycles dc load hit costs 276 | 277 | load_missdelay = 278 | number of cycles dc load miss costs 279 | 280 | store_hitdelay = 281 | number of cycles dc load hit costs 282 | 283 | store_missdelay = 284 | number of cycles dc load miss costs 285 | */ 286 | 287 | section dc 288 | enabled = 0 289 | nsets = 512 290 | nways = 1 291 | blocksize = 16 292 | load_hitdelay = 1 293 | load_missdelay = 1 294 | store_hitdelay = 1 295 | store_missdelay = 1 296 | end 297 | 298 | 299 | /* SIM SECTION 300 | 301 | This section specifies how or1ksim should behave. 302 | 303 | verbose = 0/1 304 | '0': don't print extra messages 305 | '1': print extra messages 306 | 307 | debug = 0-9 308 | 0 : no debug messages 309 | 1-9: debug message level. 310 | higher numbers produce more messages 311 | 312 | profile = 0/1 313 | '0': don't generate profiling file 'sim.profile' 314 | '1': don't generate profiling file 'sim.profile' 315 | 316 | prof_fn = "" 317 | optional filename for the profiling file. 318 | valid only if 'profile' is set 319 | 320 | mprofile = 0/1 321 | '0': don't generate memory profiling file 'sim.mprofile' 322 | '1': generate memory profiling file 'sim.mprofile' 323 | 324 | mprof_fn = "" 325 | optional filename for the memory profiling file. 326 | valid only if 'mprofile' is set 327 | 328 | history = 0/1 329 | '0': don't track execution flow 330 | '1': track execution flow 331 | Execution flow can be tracked for the simulator's 332 | 'hist' command. Useful for back-trace debugging. 333 | 334 | iprompt = 0/1 335 | '0': start in (so what do we start in ???) 336 | '1': start in interactive prompt. 337 | 338 | exe_log = 0/1 339 | '0': don't generate execution log. 340 | '1': generate execution log. 341 | 342 | exe_log = default/hardware/simple/software 343 | type of execution log, default is used when not specified 344 | 345 | exe_log_start = 346 | index of first instruction to start logging, default = 0 347 | 348 | exe_log_end = 349 | index of last instruction to end logging; not limited, if omitted 350 | 351 | exe_log_marker = 352 | specifies number of instructions before horizontal marker is 353 | printed; if zero, markers are disabled (default) 354 | 355 | exe_log_fn = "" 356 | filename for the exection log file. 357 | valid only if 'exe_log' is set 358 | 359 | clkcycle = [ps|ns|us|ms] 360 | specifies time measurement for one cycle 361 | */ 362 | 363 | section sim 364 | verbose = 1 365 | debug = 0 366 | profile = 0 367 | history = 0 368 | 369 | clkcycle = 10ns 370 | end 371 | 372 | 373 | /* SECTION VAPI 374 | 375 | This section configures the Verification API, used for Advanced 376 | Core Verification. 377 | 378 | enabled = 0/1 379 | '0': disbable VAPI server 380 | '1': enable/start VAPI server 381 | 382 | server_port = 383 | TCP/IP port to start VAPI server on 384 | 385 | log_enabled = 0/1 386 | '0': disable VAPI requests logging 387 | '1': enable VAPI requests logging 388 | 389 | hide_device_id = 0/1 390 | '0': don't log device id (for compatability with old version) 391 | '1': log device id 392 | 393 | 394 | vapi_fn = 395 | filename for the log file. 396 | valid only if log_enabled is set 397 | */ 398 | 399 | section VAPI 400 | enabled = 0 401 | server_port = 9998 402 | log_enabled = 0 403 | vapi_log_fn = "vapi.log" 404 | end 405 | 406 | 407 | /* CPU SECTION 408 | 409 | This section specifies various CPU parameters. 410 | 411 | ver = 412 | rev = 413 | specifies version and revision of the CPU used 414 | 415 | upr = 416 | changes the upr register 417 | 418 | sr = 419 | sets the initial Supervision Register value 420 | supervisor mode (SM) and fixed one (FO) set = 0x8001 421 | exception prefix high (EPH, vectors@0xf0000000) = 0x4000 422 | together, (SM | FO | EPH) = 0xc001 423 | superscalar = 0/1 424 | '0': CPU is scalar 425 | '1': CPU is superscalar 426 | (modify cpu/or32/execute.c to tune superscalar model) 427 | 428 | hazards = 0/1 429 | '0': don't track data hazards in superscalar CPU 430 | '1': track data hazards in superscalar CPU 431 | If tracked, data hazards can be displayed using the 432 | simulator's 'r' command. 433 | 434 | dependstats = 0/1 435 | '0': don't calculate inter-instruction dependencies. 436 | '1': calculate inter-instruction dependencies. 437 | If calculated, inter-instruction dependencies can be 438 | displayed using the simulator's 'stat' command. 439 | 440 | sbuf_len = 441 | length of store buffer (<= 256), 0 = disabled 442 | */ 443 | 444 | section cpu 445 | ver = 0x12 446 | cfg = 0x00 447 | rev = 0x01 448 | sr = 0x8001 /*SPR_SR_FO | SPR_SR_SM | SPR_SR_EPH */ 449 | /* upr = */ 450 | superscalar = 0 451 | hazards = 0 452 | dependstats = 0 453 | sbuf_len = 0 454 | end 455 | 456 | 457 | /* PM SECTION 458 | 459 | This section specifies Power Management parameters 460 | 461 | enabled = 0/1 462 | '0': disable power management 463 | '1': enable power management 464 | */ 465 | 466 | section pm 467 | enabled = 0 468 | end 469 | 470 | 471 | /* BPB SECTION 472 | 473 | This section specifies how branch prediction should behave. 474 | 475 | enabled = 0/1 476 | '0': disable branch prediction 477 | '1': enable branch prediction 478 | 479 | btic = 0/1 480 | '0': disable branch target instruction cache model 481 | '1': enable branch target instruction cache model 482 | 483 | sbp_bf_fwd = 0/1 484 | Static branch prediction for 'l.bf' 485 | '0': don't use forward prediction 486 | '1': use forward prediction 487 | 488 | sbp_bnf_fwd = 0/1 489 | Static branch prediction for 'l.bnf' 490 | '0': don't use forward prediction 491 | '1': use forward prediction 492 | 493 | hitdelay = 494 | number of cycles bpb hit costs 495 | 496 | missdelay = 497 | number of cycles bpb miss costs 498 | */ 499 | 500 | section bpb 501 | enabled = 0 502 | btic = 0 503 | sbp_bf_fwd = 0 504 | sbp_bnf_fwd = 0 505 | hitdelay = 0 506 | missdelay = 0 507 | end 508 | 509 | 510 | /* DEBUG SECTION 511 | 512 | This sections specifies how the debug unit should behave. 513 | 514 | enabled = 0/1 515 | '0': disable debug unit 516 | '1': enable debug unit 517 | 518 | gdb_enabled = 0/1 519 | '0': don't start gdb server 520 | '1': start gdb server at port 'server_port' 521 | 522 | server_port = 523 | TCP/IP port to start gdb server on 524 | valid only if gdb_enabled is set 525 | 526 | vapi_id = 527 | Used to create "fake" vapi log file containing the JTAG proxy messages. 528 | */ 529 | section debug 530 | enabled = 0 531 | /* gdb_enabled = 0 */ 532 | /* server_port = 9999*/ 533 | rsp_enabled = 1 534 | rsp_port = 50001 535 | end 536 | 537 | 538 | /* MC SECTION 539 | 540 | This section configures the memory controller 541 | 542 | enabled = 0/1 543 | '0': disable memory controller 544 | '1': enable memory controller 545 | 546 | baseaddr = 547 | address of first MC register 548 | 549 | POC = 550 | Power On Configuration register 551 | 552 | index = 553 | Index of this memory controller amongst all the memory controllers 554 | */ 555 | 556 | section mc 557 | enabled = 0 558 | baseaddr = 0x93000000 559 | POC = 0x00000008 /* Power on configuration register */ 560 | index = 0 561 | end 562 | 563 | 564 | /* UART SECTION 565 | 566 | This section configures the UARTs 567 | 568 | enabled = <0|1> 569 | Enable/disable the peripheral. By default if it is enabled. 570 | 571 | baseaddr = 572 | address of first UART register for this device 573 | 574 | 575 | channel = : 576 | 577 | The channel parameter indicates the source of received UART characters 578 | and the sink for transmitted UART characters. 579 | 580 | The can be either "file", "xterm", "tcp", "fd", or "tty" 581 | (without quotes). 582 | 583 | A) To send/receive characters from a pair of files, use a file 584 | channel: 585 | 586 | channel=file:, 587 | 588 | B) To create an interactive terminal window, use an xterm channel: 589 | 590 | channel=xterm:[]* 591 | 592 | C) To create a bidirectional tcp socket which one could, for example, 593 | access via telnet, use a tcp channel: 594 | 595 | channel=tcp: 596 | 597 | D) To cause the UART to read/write from existing numeric file 598 | descriptors, use an fd channel: 599 | 600 | channel=fd:, 601 | 602 | E) To connect the UART to a physical serial port, create a tty 603 | channel: 604 | 605 | channel=tty:device=/dev/ttyS0,baud=9600 606 | 607 | irq = 608 | irq number for this device 609 | 610 | 16550 = 0/1 611 | '0': this device is a UART16450 612 | '1': this device is a UART16550 613 | 614 | jitter = 615 | in msecs... time to block, -1 to disable it 616 | 617 | vapi_id = 618 | VAPI id of this instance 619 | */ 620 | 621 | section uart 622 | enabled = 1 623 | baseaddr = 0x90000000 624 | irq = 2 625 | channel = "file:uart0.rx,uart0.tx" 626 | /*channel = "xterm:"*/ 627 | /*channel=tcp:12345*/ 628 | jitter = -1 /* async behaviour */ 629 | 16550 = 1 630 | end 631 | 632 | 633 | /* DMA SECTION 634 | 635 | This section configures the DMAs 636 | 637 | enabled = <0|1> 638 | Enable/disable the peripheral. By default if it is enabled. 639 | 640 | baseaddr = 641 | address of first DMA register for this device 642 | 643 | irq = 644 | irq number for this device 645 | 646 | vapi_id = 647 | VAPI id of this instance 648 | */ 649 | 650 | section dma 651 | enabled = 1 652 | baseaddr = 0x9a000000 653 | irq = 11 654 | end 655 | 656 | 657 | /* ETHERNET SECTION 658 | 659 | This section configures the ETHERNETs 660 | 661 | enabled = <0|1> 662 | Enable/disable the peripheral. By default if it is enabled. 663 | 664 | baseaddr = 665 | address of first ethernet register for this device 666 | 667 | dma = 668 | which controller is this ethernet "connected" to 669 | 670 | irq = 671 | ethernet mac IRQ level 672 | 673 | rtx_type = 674 | use 0 - file interface, 1 - socket interface 675 | 676 | rx_channel = 677 | DMA channel used for RX 678 | 679 | tx_channel = 680 | DMA channel used for TX 681 | 682 | rxfile = "" 683 | filename, where to read data from 684 | 685 | txfile = "" 686 | filename, where to write data to 687 | 688 | sockif = "" 689 | interface name of ethernet socket 690 | 691 | vapi_id = 692 | VAPI id of this instance 693 | */ 694 | 695 | section ethernet 696 | enabled = 1 697 | baseaddr = 0x92000000 698 | /* dma = 0 */ 699 | irq = 4 700 | rtx_type = "tap" 701 | tap_dev = "tap0" 702 | /* tx_channel = 0 */ 703 | /* rx_channel = 1 */ 704 | rxfile = "eth0.rx" 705 | txfile = "eth0.tx" 706 | /* sockif = "eth0" */ 707 | end 708 | 709 | 710 | /* GPIO SECTION 711 | 712 | This section configures the GPIOs 713 | 714 | enabled = <0|1> 715 | Enable/disable the peripheral. By default if it is enabled. 716 | 717 | baseaddr = 718 | address of first GPIO register for this device 719 | 720 | irq = 721 | irq number for this device 722 | 723 | base_vapi_id = 724 | first VAPI id of this instance 725 | GPIO uses 8 consecutive VAPI IDs 726 | */ 727 | 728 | section gpio 729 | enabled = 0 730 | baseaddr = 0x91000000 731 | irq = 3 732 | base_vapi_id = 0x0200 733 | end 734 | 735 | /* VGA SECTION 736 | 737 | This section configures the VGA/LCD controller 738 | 739 | enabled = <0|1> 740 | Enable/disable the peripheral. By default if it is enabled. 741 | 742 | baseaddr = 743 | address of first VGA register 744 | 745 | irq = 746 | irq number for this device 747 | 748 | refresh_rate = 749 | number of cycles between screen dumps 750 | 751 | filename = "" 752 | template name for generated names (e.g. "primary" produces "primary0023.bmp") 753 | */ 754 | 755 | section vga 756 | enabled = 0 757 | baseaddr = 0x97100000 758 | irq = 8 759 | refresh_rate = 100000 760 | filename = "primary" 761 | end 762 | 763 | 764 | /* TICK TIMER SECTION 765 | 766 | This section configures tick timer 767 | 768 | enabled = 0/1 769 | whether tick timer is enabled 770 | */ 771 | 772 | section pic 773 | enabled = 1 774 | edge_trigger = 1 775 | end 776 | 777 | /* FB SECTION 778 | 779 | This section configures the frame buffer 780 | 781 | enabled = <0|1> 782 | Enable/disable the peripheral. By default if it is enabled. 783 | 784 | baseaddr = 785 | base address of frame buffer 786 | 787 | paladdr = 788 | base address of first palette entry 789 | 790 | refresh_rate = 791 | number of cycles between screen dumps 792 | 793 | filename = "" 794 | template name for generated names (e.g. "primary" produces "primary0023.bmp") 795 | */ 796 | 797 | section fb 798 | enabled = 0 799 | baseaddr = 0x97000000 800 | refresh_rate = 1000000 801 | filename = "primary" 802 | end 803 | 804 | 805 | /* KBD SECTION 806 | 807 | This section configures the PS/2 compatible keyboard 808 | 809 | baseaddr = 810 | base address of the keyboard device 811 | 812 | rxfile = "" 813 | filename, where to read data from 814 | */ 815 | 816 | section kbd 817 | enabled = 0 818 | irq = 5 819 | baseaddr = 0x94000000 820 | rxfile = "kbd.rx" 821 | end 822 | 823 | 824 | /* ATA SECTION 825 | 826 | This section configures the ATA/ATAPI host controller 827 | 828 | baseaddr = 829 | address of first ATA register 830 | 831 | enabled = <0|1> 832 | Enable/disable the peripheral. By default if it is enabled. 833 | 834 | irq = 835 | irq number for this device 836 | 837 | debug = 838 | debug level for ata models. 839 | 0: no debug messages 840 | 1: verbose messages 841 | 3: normal messages (more messages than verbose) 842 | 5: debug messages (normal debug messages) 843 | 7: flow control messages (debug statemachine flows) 844 | 9: low priority message (display everything the code does) 845 | 846 | dev_type0/1 = 847 | ata device 0 type 848 | 0: NO_CONNeCT: none (not connected) 849 | 1: FILE : simulated harddisk 850 | 2: LOCAL : local system harddisk 851 | 852 | dev_file0/1 = "" 853 | filename for simulated ATA device 854 | valid only if dev_type0 == 1 855 | 856 | dev_size0/1 = 857 | size of simulated hard-disk (in MBytes) 858 | valid only if dev_type0 == 1 859 | 860 | dev_packet0/1 = 861 | 0: simulated ATA device does NOT implement PACKET command feature set 862 | 1: simulated ATA device does implement PACKET command feature set 863 | 864 | FIXME: irq number 865 | */ 866 | /* does not work, there seems to be no driver */ 867 | 868 | section ata 869 | enabled = 1 870 | baseaddr = 0x9e000000 871 | irq = 15 872 | device = 0 873 | type = 1 874 | file = "ext2fsimage" 875 | size = 32 876 | end 877 | 878 | 879 | 880 | -------------------------------------------------------------------------------- /patches/CONFIG_BUSYBOX: -------------------------------------------------------------------------------- 1 | # 2 | # Automatically generated make config: don't edit 3 | # Busybox version: 1.20.2 4 | # Sat May 11 09:13:46 2013 5 | # 6 | CONFIG_HAVE_DOT_CONFIG=y 7 | 8 | # 9 | # Busybox Settings 10 | # 11 | 12 | # 13 | # General Configuration 14 | # 15 | CONFIG_DESKTOP=y 16 | # CONFIG_EXTRA_COMPAT is not set 17 | CONFIG_INCLUDE_SUSv2=y 18 | # CONFIG_USE_PORTABLE_CODE is not set 19 | CONFIG_PLATFORM_LINUX=y 20 | CONFIG_FEATURE_BUFFERS_USE_MALLOC=y 21 | # CONFIG_FEATURE_BUFFERS_GO_ON_STACK is not set 22 | # CONFIG_FEATURE_BUFFERS_GO_IN_BSS is not set 23 | CONFIG_SHOW_USAGE=y 24 | CONFIG_FEATURE_VERBOSE_USAGE=y 25 | CONFIG_FEATURE_COMPRESS_USAGE=y 26 | CONFIG_FEATURE_INSTALLER=y 27 | # CONFIG_INSTALL_NO_USR is not set 28 | # CONFIG_LOCALE_SUPPORT is not set 29 | CONFIG_UNICODE_SUPPORT=y 30 | # CONFIG_UNICODE_USING_LOCALE is not set 31 | # CONFIG_FEATURE_CHECK_UNICODE_IN_ENV is not set 32 | CONFIG_SUBST_WCHAR=63 33 | CONFIG_LAST_SUPPORTED_WCHAR=767 34 | # CONFIG_UNICODE_COMBINING_WCHARS is not set 35 | # CONFIG_UNICODE_WIDE_WCHARS is not set 36 | # CONFIG_UNICODE_BIDI_SUPPORT is not set 37 | # CONFIG_UNICODE_NEUTRAL_TABLE is not set 38 | # CONFIG_UNICODE_PRESERVE_BROKEN is not set 39 | CONFIG_LONG_OPTS=y 40 | CONFIG_FEATURE_DEVPTS=y 41 | # CONFIG_FEATURE_CLEAN_UP is not set 42 | CONFIG_FEATURE_UTMP=y 43 | CONFIG_FEATURE_WTMP=y 44 | CONFIG_FEATURE_PIDFILE=y 45 | CONFIG_FEATURE_SUID=y 46 | CONFIG_FEATURE_SUID_CONFIG=y 47 | CONFIG_FEATURE_SUID_CONFIG_QUIET=y 48 | # CONFIG_SELINUX is not set 49 | # CONFIG_FEATURE_PREFER_APPLETS is not set 50 | CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe" 51 | CONFIG_FEATURE_SYSLOG=y 52 | CONFIG_FEATURE_HAVE_RPC=y 53 | 54 | # 55 | # Build Options 56 | # 57 | CONFIG_STATIC=y 58 | # CONFIG_PIE is not set 59 | # CONFIG_NOMMU is not set 60 | # CONFIG_BUILD_LIBBUSYBOX is not set 61 | # CONFIG_FEATURE_INDIVIDUAL is not set 62 | # CONFIG_FEATURE_SHARED_BUSYBOX is not set 63 | CONFIG_LFS=y 64 | CONFIG_CROSS_COMPILER_PREFIX="" 65 | CONFIG_SYSROOT="" 66 | CONFIG_EXTRA_CFLAGS="" 67 | CONFIG_EXTRA_LDFLAGS="" 68 | CONFIG_EXTRA_LDLIBS="" 69 | 70 | # 71 | # Debugging Options 72 | # 73 | # CONFIG_DEBUG is not set 74 | # CONFIG_DEBUG_PESSIMIZE is not set 75 | # CONFIG_WERROR is not set 76 | CONFIG_NO_DEBUG_LIB=y 77 | # CONFIG_DMALLOC is not set 78 | # CONFIG_EFENCE is not set 79 | 80 | # 81 | # Installation Options ("make install" behavior) 82 | # 83 | CONFIG_INSTALL_APPLET_SYMLINKS=y 84 | # CONFIG_INSTALL_APPLET_HARDLINKS is not set 85 | # CONFIG_INSTALL_APPLET_SCRIPT_WRAPPERS is not set 86 | # CONFIG_INSTALL_APPLET_DONT is not set 87 | # CONFIG_INSTALL_SH_APPLET_SYMLINK is not set 88 | # CONFIG_INSTALL_SH_APPLET_HARDLINK is not set 89 | # CONFIG_INSTALL_SH_APPLET_SCRIPT_WRAPPER is not set 90 | CONFIG_PREFIX="./_install" 91 | 92 | # 93 | # Busybox Library Tuning 94 | # 95 | CONFIG_FEATURE_SYSTEMD=y 96 | CONFIG_FEATURE_RTMINMAX=y 97 | CONFIG_PASSWORD_MINLEN=6 98 | CONFIG_MD5_SMALL=1 99 | CONFIG_FEATURE_FAST_TOP=y 100 | # CONFIG_FEATURE_ETC_NETWORKS is not set 101 | CONFIG_FEATURE_USE_TERMIOS=y 102 | CONFIG_FEATURE_EDITING=y 103 | CONFIG_FEATURE_EDITING_MAX_LEN=1024 104 | # CONFIG_FEATURE_EDITING_VI is not set 105 | CONFIG_FEATURE_EDITING_HISTORY=255 106 | CONFIG_FEATURE_EDITING_SAVEHISTORY=y 107 | # CONFIG_FEATURE_EDITING_SAVE_ON_EXIT is not set 108 | CONFIG_FEATURE_REVERSE_SEARCH=y 109 | CONFIG_FEATURE_TAB_COMPLETION=y 110 | # CONFIG_FEATURE_USERNAME_COMPLETION is not set 111 | CONFIG_FEATURE_EDITING_FANCY_PROMPT=y 112 | # CONFIG_FEATURE_EDITING_ASK_TERMINAL is not set 113 | CONFIG_FEATURE_NON_POSIX_CP=y 114 | # CONFIG_FEATURE_VERBOSE_CP_MESSAGE is not set 115 | CONFIG_FEATURE_COPYBUF_KB=4 116 | CONFIG_FEATURE_SKIP_ROOTFS=y 117 | # CONFIG_MONOTONIC_SYSCALL is not set 118 | CONFIG_IOCTL_HEX2STR_ERROR=y 119 | CONFIG_FEATURE_HWIB=y 120 | 121 | # 122 | # Applets 123 | # 124 | 125 | # 126 | # Archival Utilities 127 | # 128 | CONFIG_FEATURE_SEAMLESS_XZ=y 129 | CONFIG_FEATURE_SEAMLESS_LZMA=y 130 | CONFIG_FEATURE_SEAMLESS_BZ2=y 131 | CONFIG_FEATURE_SEAMLESS_GZ=y 132 | # CONFIG_FEATURE_SEAMLESS_Z is not set 133 | # CONFIG_AR is not set 134 | # CONFIG_FEATURE_AR_LONG_FILENAMES is not set 135 | # CONFIG_FEATURE_AR_CREATE is not set 136 | CONFIG_BUNZIP2=y 137 | CONFIG_BZIP2=y 138 | CONFIG_CPIO=y 139 | CONFIG_FEATURE_CPIO_O=y 140 | CONFIG_FEATURE_CPIO_P=y 141 | # CONFIG_DPKG is not set 142 | # CONFIG_DPKG_DEB is not set 143 | # CONFIG_FEATURE_DPKG_DEB_EXTRACT_ONLY is not set 144 | CONFIG_GUNZIP=y 145 | CONFIG_GZIP=y 146 | CONFIG_FEATURE_GZIP_LONG_OPTIONS=y 147 | CONFIG_GZIP_FAST=0 148 | CONFIG_LZOP=y 149 | # CONFIG_LZOP_COMPR_HIGH is not set 150 | CONFIG_RPM2CPIO=y 151 | CONFIG_RPM=y 152 | CONFIG_TAR=y 153 | CONFIG_FEATURE_TAR_CREATE=y 154 | CONFIG_FEATURE_TAR_AUTODETECT=y 155 | CONFIG_FEATURE_TAR_FROM=y 156 | CONFIG_FEATURE_TAR_OLDGNU_COMPATIBILITY=y 157 | CONFIG_FEATURE_TAR_OLDSUN_COMPATIBILITY=y 158 | CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y 159 | CONFIG_FEATURE_TAR_LONG_OPTIONS=y 160 | CONFIG_FEATURE_TAR_TO_COMMAND=y 161 | CONFIG_FEATURE_TAR_UNAME_GNAME=y 162 | CONFIG_FEATURE_TAR_NOPRESERVE_TIME=y 163 | # CONFIG_FEATURE_TAR_SELINUX is not set 164 | # CONFIG_UNCOMPRESS is not set 165 | CONFIG_UNLZMA=y 166 | # CONFIG_FEATURE_LZMA_FAST is not set 167 | CONFIG_LZMA=y 168 | CONFIG_UNXZ=y 169 | CONFIG_XZ=y 170 | CONFIG_UNZIP=y 171 | 172 | # 173 | # Coreutils 174 | # 175 | CONFIG_BASENAME=y 176 | CONFIG_CAT=y 177 | CONFIG_DATE=y 178 | CONFIG_FEATURE_DATE_ISOFMT=y 179 | # CONFIG_FEATURE_DATE_NANO is not set 180 | CONFIG_FEATURE_DATE_COMPAT=y 181 | CONFIG_HOSTID=y 182 | CONFIG_ID=y 183 | CONFIG_GROUPS=y 184 | CONFIG_TEST=y 185 | CONFIG_FEATURE_TEST_64=y 186 | CONFIG_TOUCH=y 187 | CONFIG_FEATURE_TOUCH_SUSV3=y 188 | CONFIG_TR=y 189 | CONFIG_FEATURE_TR_CLASSES=y 190 | CONFIG_FEATURE_TR_EQUIV=y 191 | CONFIG_BASE64=y 192 | CONFIG_WHO=y 193 | CONFIG_USERS=y 194 | CONFIG_CAL=y 195 | CONFIG_CATV=y 196 | CONFIG_CHGRP=y 197 | CONFIG_CHMOD=y 198 | CONFIG_CHOWN=y 199 | CONFIG_FEATURE_CHOWN_LONG_OPTIONS=y 200 | CONFIG_CHROOT=y 201 | CONFIG_CKSUM=y 202 | CONFIG_COMM=y 203 | CONFIG_CP=y 204 | CONFIG_FEATURE_CP_LONG_OPTIONS=y 205 | CONFIG_CUT=y 206 | CONFIG_DD=y 207 | CONFIG_FEATURE_DD_SIGNAL_HANDLING=y 208 | CONFIG_FEATURE_DD_THIRD_STATUS_LINE=y 209 | CONFIG_FEATURE_DD_IBS_OBS=y 210 | CONFIG_DF=y 211 | CONFIG_FEATURE_DF_FANCY=y 212 | CONFIG_DIRNAME=y 213 | CONFIG_DOS2UNIX=y 214 | CONFIG_UNIX2DOS=y 215 | CONFIG_DU=y 216 | CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K=y 217 | CONFIG_ECHO=y 218 | CONFIG_FEATURE_FANCY_ECHO=y 219 | CONFIG_ENV=y 220 | CONFIG_FEATURE_ENV_LONG_OPTIONS=y 221 | CONFIG_EXPAND=y 222 | CONFIG_FEATURE_EXPAND_LONG_OPTIONS=y 223 | CONFIG_EXPR=y 224 | CONFIG_EXPR_MATH_SUPPORT_64=y 225 | CONFIG_FALSE=y 226 | CONFIG_FOLD=y 227 | CONFIG_FSYNC=y 228 | CONFIG_HEAD=y 229 | CONFIG_FEATURE_FANCY_HEAD=y 230 | CONFIG_INSTALL=y 231 | CONFIG_FEATURE_INSTALL_LONG_OPTIONS=y 232 | CONFIG_LN=y 233 | CONFIG_LOGNAME=y 234 | CONFIG_LS=y 235 | CONFIG_FEATURE_LS_FILETYPES=y 236 | CONFIG_FEATURE_LS_FOLLOWLINKS=y 237 | CONFIG_FEATURE_LS_RECURSIVE=y 238 | CONFIG_FEATURE_LS_SORTFILES=y 239 | CONFIG_FEATURE_LS_TIMESTAMPS=y 240 | CONFIG_FEATURE_LS_USERNAME=y 241 | CONFIG_FEATURE_LS_COLOR=y 242 | CONFIG_FEATURE_LS_COLOR_IS_DEFAULT=y 243 | CONFIG_MD5SUM=y 244 | CONFIG_MKDIR=y 245 | CONFIG_FEATURE_MKDIR_LONG_OPTIONS=y 246 | CONFIG_MKFIFO=y 247 | CONFIG_MKNOD=y 248 | CONFIG_MV=y 249 | CONFIG_FEATURE_MV_LONG_OPTIONS=y 250 | CONFIG_NICE=y 251 | CONFIG_NOHUP=y 252 | CONFIG_OD=y 253 | CONFIG_PRINTENV=y 254 | CONFIG_PRINTF=y 255 | CONFIG_PWD=y 256 | CONFIG_READLINK=y 257 | CONFIG_FEATURE_READLINK_FOLLOW=y 258 | CONFIG_REALPATH=y 259 | CONFIG_RM=y 260 | CONFIG_RMDIR=y 261 | CONFIG_FEATURE_RMDIR_LONG_OPTIONS=y 262 | CONFIG_SEQ=y 263 | CONFIG_SHA1SUM=y 264 | CONFIG_SHA256SUM=y 265 | CONFIG_SHA512SUM=y 266 | CONFIG_SLEEP=y 267 | CONFIG_FEATURE_FANCY_SLEEP=y 268 | CONFIG_FEATURE_FLOAT_SLEEP=y 269 | CONFIG_SORT=y 270 | CONFIG_FEATURE_SORT_BIG=y 271 | CONFIG_SPLIT=y 272 | CONFIG_FEATURE_SPLIT_FANCY=y 273 | CONFIG_STAT=y 274 | CONFIG_FEATURE_STAT_FORMAT=y 275 | CONFIG_STTY=y 276 | CONFIG_SUM=y 277 | CONFIG_SYNC=y 278 | CONFIG_TAC=y 279 | CONFIG_TAIL=y 280 | CONFIG_FEATURE_FANCY_TAIL=y 281 | CONFIG_TEE=y 282 | CONFIG_FEATURE_TEE_USE_BLOCK_IO=y 283 | CONFIG_TRUE=y 284 | CONFIG_TTY=y 285 | CONFIG_UNAME=y 286 | CONFIG_UNEXPAND=y 287 | CONFIG_FEATURE_UNEXPAND_LONG_OPTIONS=y 288 | CONFIG_UNIQ=y 289 | CONFIG_USLEEP=y 290 | CONFIG_UUDECODE=y 291 | CONFIG_UUENCODE=y 292 | CONFIG_WC=y 293 | CONFIG_FEATURE_WC_LARGE=y 294 | CONFIG_WHOAMI=y 295 | CONFIG_YES=y 296 | 297 | # 298 | # Common options for cp and mv 299 | # 300 | CONFIG_FEATURE_PRESERVE_HARDLINKS=y 301 | 302 | # 303 | # Common options for ls, more and telnet 304 | # 305 | CONFIG_FEATURE_AUTOWIDTH=y 306 | 307 | # 308 | # Common options for df, du, ls 309 | # 310 | CONFIG_FEATURE_HUMAN_READABLE=y 311 | 312 | # 313 | # Common options for md5sum, sha1sum, sha256sum, sha512sum 314 | # 315 | CONFIG_FEATURE_MD5_SHA1_SUM_CHECK=y 316 | 317 | # 318 | # Console Utilities 319 | # 320 | CONFIG_CHVT=y 321 | CONFIG_FGCONSOLE=y 322 | CONFIG_CLEAR=y 323 | CONFIG_DEALLOCVT=y 324 | CONFIG_DUMPKMAP=y 325 | CONFIG_KBD_MODE=y 326 | CONFIG_LOADFONT=y 327 | CONFIG_LOADKMAP=y 328 | CONFIG_OPENVT=y 329 | CONFIG_RESET=y 330 | CONFIG_RESIZE=y 331 | CONFIG_FEATURE_RESIZE_PRINT=y 332 | CONFIG_SETCONSOLE=y 333 | CONFIG_FEATURE_SETCONSOLE_LONG_OPTIONS=y 334 | CONFIG_SETFONT=y 335 | CONFIG_FEATURE_SETFONT_TEXTUAL_MAP=y 336 | CONFIG_DEFAULT_SETFONT_DIR="" 337 | CONFIG_SETKEYCODES=y 338 | CONFIG_SETLOGCONS=y 339 | CONFIG_SHOWKEY=y 340 | 341 | # 342 | # Common options for loadfont and setfont 343 | # 344 | CONFIG_FEATURE_LOADFONT_PSF2=y 345 | CONFIG_FEATURE_LOADFONT_RAW=y 346 | 347 | # 348 | # Debian Utilities 349 | # 350 | CONFIG_MKTEMP=y 351 | CONFIG_PIPE_PROGRESS=y 352 | CONFIG_RUN_PARTS=y 353 | CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS=y 354 | CONFIG_FEATURE_RUN_PARTS_FANCY=y 355 | CONFIG_START_STOP_DAEMON=y 356 | CONFIG_FEATURE_START_STOP_DAEMON_FANCY=y 357 | CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS=y 358 | CONFIG_WHICH=y 359 | 360 | # 361 | # Editors 362 | # 363 | CONFIG_PATCH=y 364 | CONFIG_VI=y 365 | CONFIG_FEATURE_VI_MAX_LEN=4096 366 | # CONFIG_FEATURE_VI_8BIT is not set 367 | CONFIG_FEATURE_VI_COLON=y 368 | CONFIG_FEATURE_VI_YANKMARK=y 369 | CONFIG_FEATURE_VI_SEARCH=y 370 | # CONFIG_FEATURE_VI_REGEX_SEARCH is not set 371 | CONFIG_FEATURE_VI_USE_SIGNALS=y 372 | CONFIG_FEATURE_VI_DOT_CMD=y 373 | CONFIG_FEATURE_VI_READONLY=y 374 | CONFIG_FEATURE_VI_SETOPTS=y 375 | CONFIG_FEATURE_VI_SET=y 376 | CONFIG_FEATURE_VI_WIN_RESIZE=y 377 | CONFIG_FEATURE_VI_ASK_TERMINAL=y 378 | CONFIG_FEATURE_VI_OPTIMIZE_CURSOR=y 379 | CONFIG_AWK=y 380 | CONFIG_FEATURE_AWK_LIBM=y 381 | CONFIG_CMP=y 382 | CONFIG_DIFF=y 383 | CONFIG_FEATURE_DIFF_LONG_OPTIONS=y 384 | CONFIG_FEATURE_DIFF_DIR=y 385 | CONFIG_ED=y 386 | CONFIG_SED=y 387 | CONFIG_FEATURE_ALLOW_EXEC=y 388 | 389 | # 390 | # Finding Utilities 391 | # 392 | CONFIG_FIND=y 393 | CONFIG_FEATURE_FIND_PRINT0=y 394 | CONFIG_FEATURE_FIND_MTIME=y 395 | CONFIG_FEATURE_FIND_MMIN=y 396 | CONFIG_FEATURE_FIND_PERM=y 397 | CONFIG_FEATURE_FIND_TYPE=y 398 | CONFIG_FEATURE_FIND_XDEV=y 399 | CONFIG_FEATURE_FIND_MAXDEPTH=y 400 | CONFIG_FEATURE_FIND_NEWER=y 401 | CONFIG_FEATURE_FIND_INUM=y 402 | CONFIG_FEATURE_FIND_EXEC=y 403 | CONFIG_FEATURE_FIND_USER=y 404 | CONFIG_FEATURE_FIND_GROUP=y 405 | CONFIG_FEATURE_FIND_NOT=y 406 | CONFIG_FEATURE_FIND_DEPTH=y 407 | CONFIG_FEATURE_FIND_PAREN=y 408 | CONFIG_FEATURE_FIND_SIZE=y 409 | CONFIG_FEATURE_FIND_PRUNE=y 410 | CONFIG_FEATURE_FIND_DELETE=y 411 | CONFIG_FEATURE_FIND_PATH=y 412 | CONFIG_FEATURE_FIND_REGEX=y 413 | # CONFIG_FEATURE_FIND_CONTEXT is not set 414 | CONFIG_FEATURE_FIND_LINKS=y 415 | CONFIG_GREP=y 416 | CONFIG_FEATURE_GREP_EGREP_ALIAS=y 417 | CONFIG_FEATURE_GREP_FGREP_ALIAS=y 418 | CONFIG_FEATURE_GREP_CONTEXT=y 419 | CONFIG_XARGS=y 420 | CONFIG_FEATURE_XARGS_SUPPORT_CONFIRMATION=y 421 | CONFIG_FEATURE_XARGS_SUPPORT_QUOTES=y 422 | CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT=y 423 | CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM=y 424 | 425 | # 426 | # Init Utilities 427 | # 428 | CONFIG_BOOTCHARTD=y 429 | CONFIG_FEATURE_BOOTCHARTD_BLOATED_HEADER=y 430 | CONFIG_FEATURE_BOOTCHARTD_CONFIG_FILE=y 431 | CONFIG_HALT=y 432 | # CONFIG_FEATURE_CALL_TELINIT is not set 433 | CONFIG_TELINIT_PATH="" 434 | CONFIG_INIT=y 435 | CONFIG_FEATURE_USE_INITTAB=y 436 | # CONFIG_FEATURE_KILL_REMOVED is not set 437 | CONFIG_FEATURE_KILL_DELAY=0 438 | CONFIG_FEATURE_INIT_SCTTY=y 439 | CONFIG_FEATURE_INIT_SYSLOG=y 440 | CONFIG_FEATURE_EXTRA_QUIET=y 441 | CONFIG_FEATURE_INIT_COREDUMPS=y 442 | CONFIG_FEATURE_INITRD=y 443 | CONFIG_INIT_TERMINAL_TYPE="linux" 444 | CONFIG_MESG=y 445 | CONFIG_FEATURE_MESG_ENABLE_ONLY_GROUP=y 446 | 447 | # 448 | # Login/Password Management Utilities 449 | # 450 | CONFIG_ADD_SHELL=y 451 | CONFIG_REMOVE_SHELL=y 452 | CONFIG_FEATURE_SHADOWPASSWDS=y 453 | CONFIG_USE_BB_PWD_GRP=y 454 | CONFIG_USE_BB_SHADOW=y 455 | CONFIG_USE_BB_CRYPT=y 456 | CONFIG_USE_BB_CRYPT_SHA=y 457 | CONFIG_ADDUSER=y 458 | CONFIG_FEATURE_ADDUSER_LONG_OPTIONS=y 459 | # CONFIG_FEATURE_CHECK_NAMES is not set 460 | CONFIG_FIRST_SYSTEM_ID=100 461 | CONFIG_LAST_SYSTEM_ID=999 462 | CONFIG_ADDGROUP=y 463 | CONFIG_FEATURE_ADDGROUP_LONG_OPTIONS=y 464 | CONFIG_FEATURE_ADDUSER_TO_GROUP=y 465 | CONFIG_DELUSER=y 466 | CONFIG_DELGROUP=y 467 | CONFIG_FEATURE_DEL_USER_FROM_GROUP=y 468 | CONFIG_GETTY=y 469 | CONFIG_LOGIN=y 470 | # CONFIG_LOGIN_SESSION_AS_CHILD is not set 471 | # CONFIG_PAM is not set 472 | CONFIG_LOGIN_SCRIPTS=y 473 | CONFIG_FEATURE_NOLOGIN=y 474 | CONFIG_FEATURE_SECURETTY=y 475 | CONFIG_PASSWD=y 476 | CONFIG_FEATURE_PASSWD_WEAK_CHECK=y 477 | CONFIG_CRYPTPW=y 478 | CONFIG_CHPASSWD=y 479 | CONFIG_FEATURE_DEFAULT_PASSWD_ALGO="des" 480 | CONFIG_SU=y 481 | CONFIG_FEATURE_SU_SYSLOG=y 482 | CONFIG_FEATURE_SU_CHECKS_SHELLS=y 483 | CONFIG_SULOGIN=y 484 | CONFIG_VLOCK=y 485 | 486 | # 487 | # Linux Ext2 FS Progs 488 | # 489 | CONFIG_CHATTR=y 490 | CONFIG_FSCK=y 491 | CONFIG_LSATTR=y 492 | # CONFIG_TUNE2FS is not set 493 | 494 | # 495 | # Linux Module Utilities 496 | # 497 | CONFIG_MODINFO=y 498 | CONFIG_MODPROBE_SMALL=y 499 | CONFIG_FEATURE_MODPROBE_SMALL_OPTIONS_ON_CMDLINE=y 500 | CONFIG_FEATURE_MODPROBE_SMALL_CHECK_ALREADY_LOADED=y 501 | # CONFIG_INSMOD is not set 502 | # CONFIG_RMMOD is not set 503 | # CONFIG_LSMOD is not set 504 | # CONFIG_FEATURE_LSMOD_PRETTY_2_6_OUTPUT is not set 505 | # CONFIG_MODPROBE is not set 506 | # CONFIG_FEATURE_MODPROBE_BLACKLIST is not set 507 | # CONFIG_DEPMOD is not set 508 | 509 | # 510 | # Options common to multiple modutils 511 | # 512 | # CONFIG_FEATURE_2_4_MODULES is not set 513 | # CONFIG_FEATURE_INSMOD_TRY_MMAP is not set 514 | # CONFIG_FEATURE_INSMOD_VERSION_CHECKING is not set 515 | # CONFIG_FEATURE_INSMOD_KSYMOOPS_SYMBOLS is not set 516 | # CONFIG_FEATURE_INSMOD_LOADINKMEM is not set 517 | # CONFIG_FEATURE_INSMOD_LOAD_MAP is not set 518 | # CONFIG_FEATURE_INSMOD_LOAD_MAP_FULL is not set 519 | # CONFIG_FEATURE_CHECK_TAINTED_MODULE is not set 520 | # CONFIG_FEATURE_MODUTILS_ALIAS is not set 521 | # CONFIG_FEATURE_MODUTILS_SYMBOLS is not set 522 | CONFIG_DEFAULT_MODULES_DIR="/lib/modules" 523 | CONFIG_DEFAULT_DEPMOD_FILE="modules.dep" 524 | 525 | # 526 | # Linux System Utilities 527 | # 528 | CONFIG_BLOCKDEV=y 529 | CONFIG_MDEV=y 530 | CONFIG_FEATURE_MDEV_CONF=y 531 | CONFIG_FEATURE_MDEV_RENAME=y 532 | CONFIG_FEATURE_MDEV_RENAME_REGEXP=y 533 | CONFIG_FEATURE_MDEV_EXEC=y 534 | CONFIG_FEATURE_MDEV_LOAD_FIRMWARE=y 535 | CONFIG_REV=y 536 | CONFIG_ACPID=y 537 | CONFIG_FEATURE_ACPID_COMPAT=y 538 | CONFIG_BLKID=y 539 | # CONFIG_FEATURE_BLKID_TYPE is not set 540 | CONFIG_DMESG=y 541 | CONFIG_FEATURE_DMESG_PRETTY=y 542 | CONFIG_FBSET=y 543 | CONFIG_FEATURE_FBSET_FANCY=y 544 | CONFIG_FEATURE_FBSET_READMODE=y 545 | CONFIG_FDFLUSH=y 546 | CONFIG_FDFORMAT=y 547 | CONFIG_FDISK=y 548 | # CONFIG_FDISK_SUPPORT_LARGE_DISKS is not set 549 | CONFIG_FEATURE_FDISK_WRITABLE=y 550 | # CONFIG_FEATURE_AIX_LABEL is not set 551 | # CONFIG_FEATURE_SGI_LABEL is not set 552 | # CONFIG_FEATURE_SUN_LABEL is not set 553 | # CONFIG_FEATURE_OSF_LABEL is not set 554 | # CONFIG_FEATURE_GPT_LABEL is not set 555 | CONFIG_FEATURE_FDISK_ADVANCED=y 556 | CONFIG_FINDFS=y 557 | CONFIG_FLOCK=y 558 | CONFIG_FREERAMDISK=y 559 | CONFIG_FSCK_MINIX=y 560 | CONFIG_MKFS_EXT2=y 561 | CONFIG_MKFS_MINIX=y 562 | CONFIG_FEATURE_MINIX2=y 563 | # CONFIG_MKFS_REISER is not set 564 | CONFIG_MKFS_VFAT=y 565 | CONFIG_GETOPT=y 566 | CONFIG_FEATURE_GETOPT_LONG=y 567 | CONFIG_HEXDUMP=y 568 | CONFIG_FEATURE_HEXDUMP_REVERSE=y 569 | CONFIG_HD=y 570 | CONFIG_HWCLOCK=y 571 | CONFIG_FEATURE_HWCLOCK_LONG_OPTIONS=y 572 | # CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS is not set 573 | CONFIG_IPCRM=y 574 | CONFIG_IPCS=y 575 | CONFIG_LOSETUP=y 576 | CONFIG_LSPCI=y 577 | CONFIG_LSUSB=y 578 | CONFIG_MKSWAP=y 579 | CONFIG_FEATURE_MKSWAP_UUID=y 580 | CONFIG_MORE=y 581 | CONFIG_MOUNT=y 582 | CONFIG_FEATURE_MOUNT_FAKE=y 583 | CONFIG_FEATURE_MOUNT_VERBOSE=y 584 | # CONFIG_FEATURE_MOUNT_HELPERS is not set 585 | CONFIG_FEATURE_MOUNT_LABEL=y 586 | # CONFIG_FEATURE_MOUNT_NFS is not set 587 | CONFIG_FEATURE_MOUNT_CIFS=y 588 | CONFIG_FEATURE_MOUNT_FLAGS=y 589 | CONFIG_FEATURE_MOUNT_FSTAB=y 590 | CONFIG_PIVOT_ROOT=y 591 | CONFIG_RDATE=y 592 | CONFIG_RDEV=y 593 | CONFIG_READPROFILE=y 594 | CONFIG_RTCWAKE=y 595 | CONFIG_SCRIPT=y 596 | CONFIG_SCRIPTREPLAY=y 597 | CONFIG_SETARCH=y 598 | CONFIG_SWAPONOFF=y 599 | CONFIG_FEATURE_SWAPON_PRI=y 600 | CONFIG_SWITCH_ROOT=y 601 | CONFIG_UMOUNT=y 602 | CONFIG_FEATURE_UMOUNT_ALL=y 603 | 604 | # 605 | # Common options for mount/umount 606 | # 607 | CONFIG_FEATURE_MOUNT_LOOP=y 608 | CONFIG_FEATURE_MOUNT_LOOP_CREATE=y 609 | # CONFIG_FEATURE_MTAB_SUPPORT is not set 610 | CONFIG_VOLUMEID=y 611 | 612 | # 613 | # Filesystem/Volume identification 614 | # 615 | CONFIG_FEATURE_VOLUMEID_EXT=y 616 | CONFIG_FEATURE_VOLUMEID_BTRFS=y 617 | CONFIG_FEATURE_VOLUMEID_REISERFS=y 618 | CONFIG_FEATURE_VOLUMEID_FAT=y 619 | CONFIG_FEATURE_VOLUMEID_HFS=y 620 | CONFIG_FEATURE_VOLUMEID_JFS=y 621 | CONFIG_FEATURE_VOLUMEID_XFS=y 622 | CONFIG_FEATURE_VOLUMEID_NTFS=y 623 | CONFIG_FEATURE_VOLUMEID_ISO9660=y 624 | CONFIG_FEATURE_VOLUMEID_UDF=y 625 | CONFIG_FEATURE_VOLUMEID_LUKS=y 626 | CONFIG_FEATURE_VOLUMEID_LINUXSWAP=y 627 | CONFIG_FEATURE_VOLUMEID_CRAMFS=y 628 | CONFIG_FEATURE_VOLUMEID_ROMFS=y 629 | CONFIG_FEATURE_VOLUMEID_SYSV=y 630 | CONFIG_FEATURE_VOLUMEID_OCFS2=y 631 | CONFIG_FEATURE_VOLUMEID_LINUXRAID=y 632 | 633 | # 634 | # Miscellaneous Utilities 635 | # 636 | CONFIG_CONSPY=y 637 | CONFIG_LESS=y 638 | CONFIG_FEATURE_LESS_MAXLINES=9999999 639 | CONFIG_FEATURE_LESS_BRACKETS=y 640 | CONFIG_FEATURE_LESS_FLAGS=y 641 | CONFIG_FEATURE_LESS_MARKS=y 642 | CONFIG_FEATURE_LESS_REGEXP=y 643 | CONFIG_FEATURE_LESS_WINCH=y 644 | CONFIG_FEATURE_LESS_ASK_TERMINAL=y 645 | CONFIG_FEATURE_LESS_DASHCMD=y 646 | CONFIG_FEATURE_LESS_LINENUMS=y 647 | CONFIG_NANDWRITE=y 648 | CONFIG_NANDDUMP=y 649 | CONFIG_SETSERIAL=y 650 | CONFIG_UBIATTACH=y 651 | CONFIG_UBIDETACH=y 652 | CONFIG_UBIMKVOL=y 653 | CONFIG_UBIRMVOL=y 654 | CONFIG_UBIRSVOL=y 655 | CONFIG_UBIUPDATEVOL=y 656 | CONFIG_ADJTIMEX=y 657 | # CONFIG_BBCONFIG is not set 658 | # CONFIG_FEATURE_COMPRESS_BBCONFIG is not set 659 | CONFIG_BEEP=y 660 | CONFIG_FEATURE_BEEP_FREQ=4000 661 | CONFIG_FEATURE_BEEP_LENGTH_MS=30 662 | CONFIG_CHAT=y 663 | CONFIG_FEATURE_CHAT_NOFAIL=y 664 | # CONFIG_FEATURE_CHAT_TTY_HIFI is not set 665 | CONFIG_FEATURE_CHAT_IMPLICIT_CR=y 666 | CONFIG_FEATURE_CHAT_SWALLOW_OPTS=y 667 | CONFIG_FEATURE_CHAT_SEND_ESCAPES=y 668 | CONFIG_FEATURE_CHAT_VAR_ABORT_LEN=y 669 | CONFIG_FEATURE_CHAT_CLR_ABORT=y 670 | CONFIG_CHRT=y 671 | CONFIG_CROND=y 672 | CONFIG_FEATURE_CROND_D=y 673 | CONFIG_FEATURE_CROND_CALL_SENDMAIL=y 674 | CONFIG_FEATURE_CROND_DIR="/var/spool/cron" 675 | CONFIG_CRONTAB=y 676 | CONFIG_DC=y 677 | CONFIG_FEATURE_DC_LIBM=y 678 | # CONFIG_DEVFSD is not set 679 | # CONFIG_DEVFSD_MODLOAD is not set 680 | # CONFIG_DEVFSD_FG_NP is not set 681 | # CONFIG_DEVFSD_VERBOSE is not set 682 | # CONFIG_FEATURE_DEVFS is not set 683 | CONFIG_DEVMEM=y 684 | # CONFIG_EJECT is not set 685 | # CONFIG_FEATURE_EJECT_SCSI is not set 686 | CONFIG_FBSPLASH=y 687 | # CONFIG_FLASHCP is not set 688 | # CONFIG_FLASH_LOCK is not set 689 | # CONFIG_FLASH_UNLOCK is not set 690 | # CONFIG_FLASH_ERASEALL is not set 691 | CONFIG_IONICE=y 692 | # CONFIG_INOTIFYD is not set 693 | CONFIG_LAST=y 694 | # CONFIG_FEATURE_LAST_SMALL is not set 695 | CONFIG_FEATURE_LAST_FANCY=y 696 | CONFIG_HDPARM=y 697 | CONFIG_FEATURE_HDPARM_GET_IDENTITY=y 698 | CONFIG_FEATURE_HDPARM_HDIO_SCAN_HWIF=y 699 | CONFIG_FEATURE_HDPARM_HDIO_UNREGISTER_HWIF=y 700 | CONFIG_FEATURE_HDPARM_HDIO_DRIVE_RESET=y 701 | CONFIG_FEATURE_HDPARM_HDIO_TRISTATE_HWIF=y 702 | CONFIG_FEATURE_HDPARM_HDIO_GETSET_DMA=y 703 | CONFIG_MAKEDEVS=y 704 | # CONFIG_FEATURE_MAKEDEVS_LEAF is not set 705 | CONFIG_FEATURE_MAKEDEVS_TABLE=y 706 | CONFIG_MAN=y 707 | CONFIG_MICROCOM=y 708 | CONFIG_MOUNTPOINT=y 709 | CONFIG_MT=y 710 | CONFIG_RAIDAUTORUN=y 711 | CONFIG_READAHEAD=y 712 | # CONFIG_RFKILL is not set 713 | CONFIG_RUNLEVEL=y 714 | CONFIG_RX=y 715 | CONFIG_SETSID=y 716 | CONFIG_STRINGS=y 717 | # CONFIG_TASKSET is not set 718 | # CONFIG_FEATURE_TASKSET_FANCY is not set 719 | CONFIG_TIME=y 720 | CONFIG_TIMEOUT=y 721 | CONFIG_TTYSIZE=y 722 | CONFIG_VOLNAME=y 723 | CONFIG_WALL=y 724 | CONFIG_WATCHDOG=y 725 | 726 | # 727 | # Networking Utilities 728 | # 729 | CONFIG_NAMEIF=y 730 | CONFIG_FEATURE_NAMEIF_EXTENDED=y 731 | CONFIG_NBDCLIENT=y 732 | CONFIG_NC=y 733 | CONFIG_NC_SERVER=y 734 | CONFIG_NC_EXTRA=y 735 | # CONFIG_NC_110_COMPAT is not set 736 | CONFIG_PING=y 737 | CONFIG_PING6=y 738 | CONFIG_FEATURE_FANCY_PING=y 739 | CONFIG_WHOIS=y 740 | CONFIG_FEATURE_IPV6=y 741 | # CONFIG_FEATURE_UNIX_LOCAL is not set 742 | CONFIG_FEATURE_PREFER_IPV4_ADDRESS=y 743 | # CONFIG_VERBOSE_RESOLUTION_ERRORS is not set 744 | CONFIG_ARP=y 745 | CONFIG_ARPING=y 746 | CONFIG_BRCTL=y 747 | CONFIG_FEATURE_BRCTL_FANCY=y 748 | CONFIG_FEATURE_BRCTL_SHOW=y 749 | CONFIG_DNSD=y 750 | CONFIG_ETHER_WAKE=y 751 | CONFIG_FAKEIDENTD=y 752 | CONFIG_FTPD=y 753 | CONFIG_FEATURE_FTP_WRITE=y 754 | CONFIG_FEATURE_FTPD_ACCEPT_BROKEN_LIST=y 755 | CONFIG_FTPGET=y 756 | CONFIG_FTPPUT=y 757 | CONFIG_FEATURE_FTPGETPUT_LONG_OPTIONS=y 758 | CONFIG_HOSTNAME=y 759 | CONFIG_HTTPD=y 760 | CONFIG_FEATURE_HTTPD_RANGES=y 761 | CONFIG_FEATURE_HTTPD_USE_SENDFILE=y 762 | CONFIG_FEATURE_HTTPD_SETUID=y 763 | CONFIG_FEATURE_HTTPD_BASIC_AUTH=y 764 | CONFIG_FEATURE_HTTPD_AUTH_MD5=y 765 | CONFIG_FEATURE_HTTPD_CGI=y 766 | CONFIG_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR=y 767 | CONFIG_FEATURE_HTTPD_SET_REMOTE_PORT_TO_ENV=y 768 | CONFIG_FEATURE_HTTPD_ENCODE_URL_STR=y 769 | CONFIG_FEATURE_HTTPD_ERROR_PAGES=y 770 | CONFIG_FEATURE_HTTPD_PROXY=y 771 | CONFIG_FEATURE_HTTPD_GZIP=y 772 | CONFIG_IFCONFIG=y 773 | CONFIG_FEATURE_IFCONFIG_STATUS=y 774 | CONFIG_FEATURE_IFCONFIG_SLIP=y 775 | CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ=y 776 | CONFIG_FEATURE_IFCONFIG_HW=y 777 | CONFIG_FEATURE_IFCONFIG_BROADCAST_PLUS=y 778 | CONFIG_IFENSLAVE=y 779 | CONFIG_IFPLUGD=y 780 | CONFIG_IFUPDOWN=y 781 | CONFIG_IFUPDOWN_IFSTATE_PATH="/var/run/ifstate" 782 | CONFIG_FEATURE_IFUPDOWN_IP=y 783 | CONFIG_FEATURE_IFUPDOWN_IP_BUILTIN=y 784 | # CONFIG_FEATURE_IFUPDOWN_IFCONFIG_BUILTIN is not set 785 | CONFIG_FEATURE_IFUPDOWN_IPV4=y 786 | CONFIG_FEATURE_IFUPDOWN_IPV6=y 787 | CONFIG_FEATURE_IFUPDOWN_MAPPING=y 788 | # CONFIG_FEATURE_IFUPDOWN_EXTERNAL_DHCP is not set 789 | CONFIG_INETD=y 790 | CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_ECHO=y 791 | CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD=y 792 | CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_TIME=y 793 | CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME=y 794 | CONFIG_FEATURE_INETD_SUPPORT_BUILTIN_CHARGEN=y 795 | CONFIG_FEATURE_INETD_RPC=y 796 | CONFIG_IP=y 797 | CONFIG_FEATURE_IP_ADDRESS=y 798 | CONFIG_FEATURE_IP_LINK=y 799 | CONFIG_FEATURE_IP_ROUTE=y 800 | CONFIG_FEATURE_IP_TUNNEL=y 801 | CONFIG_FEATURE_IP_RULE=y 802 | CONFIG_FEATURE_IP_SHORT_FORMS=y 803 | # CONFIG_FEATURE_IP_RARE_PROTOCOLS is not set 804 | CONFIG_IPADDR=y 805 | CONFIG_IPLINK=y 806 | CONFIG_IPROUTE=y 807 | CONFIG_IPTUNNEL=y 808 | CONFIG_IPRULE=y 809 | CONFIG_IPCALC=y 810 | CONFIG_FEATURE_IPCALC_FANCY=y 811 | CONFIG_FEATURE_IPCALC_LONG_OPTIONS=y 812 | CONFIG_NETSTAT=y 813 | CONFIG_FEATURE_NETSTAT_WIDE=y 814 | CONFIG_FEATURE_NETSTAT_PRG=y 815 | # CONFIG_NSLOOKUP is not set 816 | CONFIG_NTPD=y 817 | CONFIG_FEATURE_NTPD_SERVER=y 818 | CONFIG_PSCAN=y 819 | CONFIG_ROUTE=y 820 | CONFIG_SLATTACH=y 821 | CONFIG_TCPSVD=y 822 | CONFIG_TELNET=y 823 | CONFIG_FEATURE_TELNET_TTYPE=y 824 | CONFIG_FEATURE_TELNET_AUTOLOGIN=y 825 | CONFIG_TELNETD=y 826 | CONFIG_FEATURE_TELNETD_STANDALONE=y 827 | CONFIG_FEATURE_TELNETD_INETD_WAIT=y 828 | CONFIG_TFTP=y 829 | CONFIG_TFTPD=y 830 | 831 | # 832 | # Common options for tftp/tftpd 833 | # 834 | CONFIG_FEATURE_TFTP_GET=y 835 | CONFIG_FEATURE_TFTP_PUT=y 836 | CONFIG_FEATURE_TFTP_BLOCKSIZE=y 837 | CONFIG_FEATURE_TFTP_PROGRESS_BAR=y 838 | # CONFIG_TFTP_DEBUG is not set 839 | CONFIG_TRACEROUTE=y 840 | CONFIG_TRACEROUTE6=y 841 | CONFIG_FEATURE_TRACEROUTE_VERBOSE=y 842 | # CONFIG_FEATURE_TRACEROUTE_SOURCE_ROUTE is not set 843 | # CONFIG_FEATURE_TRACEROUTE_USE_ICMP is not set 844 | CONFIG_TUNCTL=y 845 | CONFIG_FEATURE_TUNCTL_UG=y 846 | # CONFIG_UDHCPC6 is not set 847 | CONFIG_UDHCPD=y 848 | CONFIG_DHCPRELAY=y 849 | CONFIG_DUMPLEASES=y 850 | CONFIG_FEATURE_UDHCPD_WRITE_LEASES_EARLY=y 851 | # CONFIG_FEATURE_UDHCPD_BASE_IP_ON_MAC is not set 852 | CONFIG_DHCPD_LEASES_FILE="/var/lib/misc/udhcpd.leases" 853 | CONFIG_UDHCPC=y 854 | CONFIG_FEATURE_UDHCPC_ARPING=y 855 | # CONFIG_FEATURE_UDHCP_PORT is not set 856 | CONFIG_UDHCP_DEBUG=9 857 | CONFIG_FEATURE_UDHCP_RFC3397=y 858 | CONFIG_FEATURE_UDHCP_8021Q=y 859 | CONFIG_UDHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script" 860 | CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80 861 | CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-R -n" 862 | CONFIG_UDPSVD=y 863 | CONFIG_VCONFIG=y 864 | CONFIG_WGET=y 865 | CONFIG_FEATURE_WGET_STATUSBAR=y 866 | CONFIG_FEATURE_WGET_AUTHENTICATION=y 867 | CONFIG_FEATURE_WGET_LONG_OPTIONS=y 868 | CONFIG_FEATURE_WGET_TIMEOUT=y 869 | CONFIG_ZCIP=y 870 | 871 | # 872 | # Print Utilities 873 | # 874 | CONFIG_LPD=y 875 | CONFIG_LPR=y 876 | CONFIG_LPQ=y 877 | 878 | # 879 | # Mail Utilities 880 | # 881 | CONFIG_MAKEMIME=y 882 | CONFIG_FEATURE_MIME_CHARSET="us-ascii" 883 | CONFIG_POPMAILDIR=y 884 | CONFIG_FEATURE_POPMAILDIR_DELIVERY=y 885 | CONFIG_REFORMIME=y 886 | CONFIG_FEATURE_REFORMIME_COMPAT=y 887 | CONFIG_SENDMAIL=y 888 | 889 | # 890 | # Process Utilities 891 | # 892 | CONFIG_IOSTAT=y 893 | CONFIG_LSOF=y 894 | CONFIG_MPSTAT=y 895 | CONFIG_NMETER=y 896 | CONFIG_PMAP=y 897 | CONFIG_POWERTOP=y 898 | CONFIG_PSTREE=y 899 | CONFIG_PWDX=y 900 | CONFIG_SMEMCAP=y 901 | CONFIG_UPTIME=y 902 | CONFIG_FEATURE_UPTIME_UTMP_SUPPORT=y 903 | CONFIG_FREE=y 904 | CONFIG_FUSER=y 905 | CONFIG_KILL=y 906 | CONFIG_KILLALL=y 907 | CONFIG_KILLALL5=y 908 | CONFIG_PGREP=y 909 | CONFIG_PIDOF=y 910 | CONFIG_FEATURE_PIDOF_SINGLE=y 911 | CONFIG_FEATURE_PIDOF_OMIT=y 912 | CONFIG_PKILL=y 913 | CONFIG_PS=y 914 | # CONFIG_FEATURE_PS_WIDE is not set 915 | # CONFIG_FEATURE_PS_LONG is not set 916 | CONFIG_FEATURE_PS_TIME=y 917 | CONFIG_FEATURE_PS_ADDITIONAL_COLUMNS=y 918 | # CONFIG_FEATURE_PS_UNUSUAL_SYSTEMS is not set 919 | CONFIG_RENICE=y 920 | CONFIG_BB_SYSCTL=y 921 | CONFIG_TOP=y 922 | CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE=y 923 | CONFIG_FEATURE_TOP_CPU_GLOBAL_PERCENTS=y 924 | CONFIG_FEATURE_TOP_SMP_CPU=y 925 | CONFIG_FEATURE_TOP_DECIMALS=y 926 | CONFIG_FEATURE_TOP_SMP_PROCESS=y 927 | CONFIG_FEATURE_TOPMEM=y 928 | CONFIG_FEATURE_SHOW_THREADS=y 929 | CONFIG_WATCH=y 930 | 931 | # 932 | # Runit Utilities 933 | # 934 | CONFIG_RUNSV=y 935 | CONFIG_RUNSVDIR=y 936 | # CONFIG_FEATURE_RUNSVDIR_LOG is not set 937 | CONFIG_SV=y 938 | CONFIG_SV_DEFAULT_SERVICE_DIR="/var/service" 939 | CONFIG_SVLOGD=y 940 | CONFIG_CHPST=y 941 | CONFIG_SETUIDGID=y 942 | CONFIG_ENVUIDGID=y 943 | CONFIG_ENVDIR=y 944 | CONFIG_SOFTLIMIT=y 945 | # CONFIG_CHCON is not set 946 | # CONFIG_FEATURE_CHCON_LONG_OPTIONS is not set 947 | # CONFIG_GETENFORCE is not set 948 | # CONFIG_GETSEBOOL is not set 949 | # CONFIG_LOAD_POLICY is not set 950 | # CONFIG_MATCHPATHCON is not set 951 | # CONFIG_RESTORECON is not set 952 | # CONFIG_RUNCON is not set 953 | # CONFIG_FEATURE_RUNCON_LONG_OPTIONS is not set 954 | # CONFIG_SELINUXENABLED is not set 955 | # CONFIG_SETENFORCE is not set 956 | # CONFIG_SETFILES is not set 957 | # CONFIG_FEATURE_SETFILES_CHECK_OPTION is not set 958 | # CONFIG_SETSEBOOL is not set 959 | # CONFIG_SESTATUS is not set 960 | 961 | # 962 | # Shells 963 | # 964 | CONFIG_ASH=y 965 | CONFIG_ASH_BASH_COMPAT=y 966 | # CONFIG_ASH_IDLE_TIMEOUT is not set 967 | CONFIG_ASH_JOB_CONTROL=y 968 | CONFIG_ASH_ALIAS=y 969 | CONFIG_ASH_GETOPTS=y 970 | CONFIG_ASH_BUILTIN_ECHO=y 971 | CONFIG_ASH_BUILTIN_PRINTF=y 972 | CONFIG_ASH_BUILTIN_TEST=y 973 | CONFIG_ASH_CMDCMD=y 974 | # CONFIG_ASH_MAIL is not set 975 | CONFIG_ASH_OPTIMIZE_FOR_SIZE=y 976 | CONFIG_ASH_RANDOM_SUPPORT=y 977 | CONFIG_ASH_EXPAND_PRMT=y 978 | CONFIG_CTTYHACK=y 979 | CONFIG_HUSH=y 980 | CONFIG_HUSH_BASH_COMPAT=y 981 | CONFIG_HUSH_BRACE_EXPANSION=y 982 | CONFIG_HUSH_HELP=y 983 | CONFIG_HUSH_INTERACTIVE=y 984 | CONFIG_HUSH_SAVEHISTORY=y 985 | CONFIG_HUSH_JOB=y 986 | CONFIG_HUSH_TICK=y 987 | CONFIG_HUSH_IF=y 988 | CONFIG_HUSH_LOOPS=y 989 | CONFIG_HUSH_CASE=y 990 | CONFIG_HUSH_FUNCTIONS=y 991 | CONFIG_HUSH_LOCAL=y 992 | CONFIG_HUSH_RANDOM_SUPPORT=y 993 | CONFIG_HUSH_EXPORT_N=y 994 | CONFIG_HUSH_MODE_X=y 995 | # CONFIG_MSH is not set 996 | CONFIG_FEATURE_SH_IS_ASH=y 997 | # CONFIG_FEATURE_SH_IS_HUSH is not set 998 | # CONFIG_FEATURE_SH_IS_NONE is not set 999 | # CONFIG_FEATURE_BASH_IS_ASH is not set 1000 | # CONFIG_FEATURE_BASH_IS_HUSH is not set 1001 | CONFIG_FEATURE_BASH_IS_NONE=y 1002 | CONFIG_SH_MATH_SUPPORT=y 1003 | CONFIG_SH_MATH_SUPPORT_64=y 1004 | CONFIG_FEATURE_SH_EXTRA_QUIET=y 1005 | # CONFIG_FEATURE_SH_STANDALONE is not set 1006 | # CONFIG_FEATURE_SH_NOFORK is not set 1007 | CONFIG_FEATURE_SH_HISTFILESIZE=y 1008 | 1009 | # 1010 | # System Logging Utilities 1011 | # 1012 | CONFIG_SYSLOGD=y 1013 | CONFIG_FEATURE_ROTATE_LOGFILE=y 1014 | CONFIG_FEATURE_REMOTE_LOG=y 1015 | CONFIG_FEATURE_SYSLOGD_DUP=y 1016 | CONFIG_FEATURE_SYSLOGD_CFG=y 1017 | CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE=256 1018 | CONFIG_FEATURE_IPC_SYSLOG=y 1019 | CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=16 1020 | CONFIG_LOGREAD=y 1021 | CONFIG_FEATURE_LOGREAD_REDUCED_LOCKING=y 1022 | CONFIG_KLOGD=y 1023 | CONFIG_FEATURE_KLOGD_KLOGCTL=y 1024 | CONFIG_LOGGER=y 1025 | -------------------------------------------------------------------------------- /patches/CONFIG_LINUX: -------------------------------------------------------------------------------- 1 | # 2 | # Automatically generated file; DO NOT EDIT. 3 | # Linux/openrisc 3.9.0 Kernel Configuration 4 | # 5 | CONFIG_OPENRISC=y 6 | CONFIG_MMU=y 7 | CONFIG_HAVE_DMA_ATTRS=y 8 | CONFIG_UID16=y 9 | CONFIG_RWSEM_GENERIC_SPINLOCK=y 10 | # CONFIG_RWSEM_XCHGADD_ALGORITHM is not set 11 | CONFIG_GENERIC_HWEIGHT=y 12 | CONFIG_NO_IOPORT=y 13 | CONFIG_GENERIC_GPIO=y 14 | CONFIG_TRACE_IRQFLAGS_SUPPORT=y 15 | CONFIG_WISHBONE_BUS_BIG_ENDIAN=y 16 | CONFIG_GENERIC_CSUM=y 17 | CONFIG_GENERIC_FIND_NEXT_BIT=y 18 | CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" 19 | CONFIG_IRQ_WORK=y 20 | 21 | # 22 | # General setup 23 | # 24 | CONFIG_BROKEN_ON_SMP=y 25 | CONFIG_INIT_ENV_ARG_LIMIT=32 26 | CONFIG_CROSS_COMPILE="or1k-elf-" 27 | CONFIG_LOCALVERSION="" 28 | CONFIG_LOCALVERSION_AUTO=y 29 | CONFIG_DEFAULT_HOSTNAME="(none)" 30 | CONFIG_SWAP=y 31 | # CONFIG_SYSVIPC is not set 32 | # CONFIG_POSIX_MQUEUE is not set 33 | # CONFIG_FHANDLE is not set 34 | # CONFIG_AUDIT is not set 35 | CONFIG_HAVE_GENERIC_HARDIRQS=y 36 | 37 | # 38 | # IRQ subsystem 39 | # 40 | CONFIG_GENERIC_HARDIRQS=y 41 | CONFIG_GENERIC_IRQ_PROBE=y 42 | CONFIG_GENERIC_IRQ_SHOW=y 43 | CONFIG_GENERIC_IRQ_CHIP=y 44 | CONFIG_IRQ_DOMAIN=y 45 | CONFIG_SPARSE_IRQ=y 46 | # CONFIG_ALWAYS_USE_PERSISTENT_CLOCK is not set 47 | CONFIG_GENERIC_CLOCKEVENTS=y 48 | CONFIG_GENERIC_CLOCKEVENTS_BUILD=y 49 | 50 | # 51 | # Timers subsystem 52 | # 53 | CONFIG_TICK_ONESHOT=y 54 | CONFIG_NO_HZ=y 55 | # CONFIG_HIGH_RES_TIMERS is not set 56 | 57 | # 58 | # CPU/Task time and stats accounting 59 | # 60 | CONFIG_TICK_CPU_ACCOUNTING=y 61 | # CONFIG_BSD_PROCESS_ACCT is not set 62 | # CONFIG_TASKSTATS is not set 63 | 64 | # 65 | # RCU Subsystem 66 | # 67 | CONFIG_TINY_RCU=y 68 | # CONFIG_PREEMPT_RCU is not set 69 | # CONFIG_RCU_STALL_COMMON is not set 70 | # CONFIG_TREE_RCU_TRACE is not set 71 | # CONFIG_IKCONFIG is not set 72 | CONFIG_LOG_BUF_SHIFT=14 73 | # CONFIG_CHECKPOINT_RESTORE is not set 74 | # CONFIG_NAMESPACES is not set 75 | CONFIG_UIDGID_CONVERTED=y 76 | # CONFIG_UIDGID_STRICT_TYPE_CHECKS is not set 77 | # CONFIG_SCHED_AUTOGROUP is not set 78 | # CONFIG_SYSFS_DEPRECATED is not set 79 | # CONFIG_RELAY is not set 80 | CONFIG_BLK_DEV_INITRD=y 81 | CONFIG_INITRAMFS_SOURCE="arch/openrisc/support/initramfs arch/openrisc/support/initramfs.devnodes" 82 | CONFIG_INITRAMFS_ROOT_UID=0 83 | CONFIG_INITRAMFS_ROOT_GID=0 84 | # CONFIG_RD_GZIP is not set 85 | # CONFIG_RD_BZIP2 is not set 86 | # CONFIG_RD_LZMA is not set 87 | # CONFIG_RD_XZ is not set 88 | # CONFIG_RD_LZO is not set 89 | CONFIG_INITRAMFS_COMPRESSION_NONE=y 90 | # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set 91 | CONFIG_SYSCTL=y 92 | CONFIG_ANON_INODES=y 93 | CONFIG_EXPERT=y 94 | # CONFIG_SYSCTL_SYSCALL is not set 95 | # CONFIG_KALLSYMS is not set 96 | CONFIG_HOTPLUG=y 97 | CONFIG_PRINTK=y 98 | CONFIG_BUG=y 99 | CONFIG_ELF_CORE=y 100 | CONFIG_BASE_FULL=y 101 | CONFIG_FUTEX=y 102 | # CONFIG_EPOLL is not set 103 | CONFIG_SIGNALFD=y 104 | # CONFIG_TIMERFD is not set 105 | # CONFIG_EVENTFD is not set 106 | CONFIG_SHMEM=y 107 | # CONFIG_AIO is not set 108 | # CONFIG_EMBEDDED is not set 109 | 110 | # 111 | # Kernel Performance Events And Counters 112 | # 113 | # CONFIG_VM_EVENT_COUNTERS is not set 114 | # CONFIG_COMPAT_BRK is not set 115 | # CONFIG_SLAB is not set 116 | # CONFIG_SLUB is not set 117 | CONFIG_SLOB=y 118 | # CONFIG_PROFILING is not set 119 | # CONFIG_HAVE_64BIT_ALIGNED_ACCESS is not set 120 | CONFIG_HAVE_ARCH_TRACEHOOK=y 121 | CONFIG_MODULES_USE_ELF_RELA=y 122 | 123 | # 124 | # GCOV-based kernel profiling 125 | # 126 | # CONFIG_HAVE_GENERIC_DMA_COHERENT is not set 127 | CONFIG_RT_MUTEXES=y 128 | CONFIG_BASE_SMALL=0 129 | CONFIG_MODULES=y 130 | # CONFIG_MODULE_FORCE_LOAD is not set 131 | # CONFIG_MODULE_UNLOAD is not set 132 | # CONFIG_MODVERSIONS is not set 133 | # CONFIG_MODULE_SRCVERSION_ALL is not set 134 | # CONFIG_MODULE_SIG is not set 135 | CONFIG_BLOCK=y 136 | CONFIG_LBDAF=y 137 | CONFIG_BLK_DEV_BSG=y 138 | # CONFIG_BLK_DEV_BSGLIB is not set 139 | # CONFIG_BLK_DEV_INTEGRITY is not set 140 | 141 | # 142 | # Partition Types 143 | # 144 | # CONFIG_PARTITION_ADVANCED is not set 145 | CONFIG_MSDOS_PARTITION=y 146 | CONFIG_EFI_PARTITION=y 147 | 148 | # 149 | # IO Schedulers 150 | # 151 | CONFIG_IOSCHED_NOOP=y 152 | CONFIG_IOSCHED_DEADLINE=y 153 | CONFIG_IOSCHED_CFQ=y 154 | # CONFIG_DEFAULT_DEADLINE is not set 155 | CONFIG_DEFAULT_CFQ=y 156 | # CONFIG_DEFAULT_NOOP is not set 157 | CONFIG_DEFAULT_IOSCHED="cfq" 158 | CONFIG_INLINE_SPIN_UNLOCK_IRQ=y 159 | CONFIG_INLINE_READ_UNLOCK=y 160 | CONFIG_INLINE_READ_UNLOCK_IRQ=y 161 | CONFIG_INLINE_WRITE_UNLOCK=y 162 | CONFIG_INLINE_WRITE_UNLOCK_IRQ=y 163 | 164 | # 165 | # Processor type and features 166 | # 167 | CONFIG_OR1K_1200=y 168 | CONFIG_OPENRISC_BUILTIN_DTB="or1ksim" 169 | 170 | # 171 | # Class II Instructions 172 | # 173 | CONFIG_OPENRISC_HAVE_INST_FF1=y 174 | CONFIG_OPENRISC_HAVE_INST_FL1=y 175 | CONFIG_OPENRISC_HAVE_INST_MUL=y 176 | CONFIG_OPENRISC_HAVE_INST_DIV=y 177 | CONFIG_HZ_100=y 178 | # CONFIG_HZ_250 is not set 179 | # CONFIG_HZ_300 is not set 180 | # CONFIG_HZ_1000 is not set 181 | CONFIG_HZ=100 182 | # CONFIG_SCHED_HRTICK is not set 183 | CONFIG_PREEMPT_NONE=y 184 | # CONFIG_PREEMPT_VOLUNTARY is not set 185 | # CONFIG_PREEMPT is not set 186 | CONFIG_FLATMEM=y 187 | CONFIG_FLAT_NODE_MEM_MAP=y 188 | CONFIG_HAVE_MEMBLOCK=y 189 | # CONFIG_HAVE_BOOTMEM_INFO_NODE is not set 190 | CONFIG_PAGEFLAGS_EXTENDED=y 191 | CONFIG_SPLIT_PTLOCK_CPUS=4 192 | CONFIG_COMPACTION=y 193 | CONFIG_MIGRATION=y 194 | # CONFIG_PHYS_ADDR_T_64BIT is not set 195 | CONFIG_ZONE_DMA_FLAG=0 196 | # CONFIG_KSM is not set 197 | CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 198 | CONFIG_CROSS_MEMORY_ATTACH=y 199 | CONFIG_NEED_PER_CPU_KM=y 200 | # CONFIG_CLEANCACHE is not set 201 | # CONFIG_FRONTSWAP is not set 202 | CONFIG_OPENRISC_NO_SPR_SR_DSX=y 203 | CONFIG_CMDLINE="" 204 | 205 | # 206 | # Debugging options 207 | # 208 | CONFIG_DEBUG_STACKOVERFLOW=y 209 | CONFIG_JUMP_UPON_UNHANDLED_EXCEPTION=y 210 | # CONFIG_OPENRISC_ESR_EXCEPTION_BUG_CHECK is not set 211 | 212 | # 213 | # Executable file formats 214 | # 215 | CONFIG_BINFMT_ELF=y 216 | CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y 217 | # CONFIG_HAVE_AOUT is not set 218 | # CONFIG_BINFMT_MISC is not set 219 | CONFIG_COREDUMP=y 220 | CONFIG_NET=y 221 | 222 | # 223 | # Networking options 224 | # 225 | CONFIG_PACKET=y 226 | # CONFIG_PACKET_DIAG is not set 227 | CONFIG_UNIX=y 228 | # CONFIG_UNIX_DIAG is not set 229 | # CONFIG_XFRM_USER is not set 230 | # CONFIG_NET_KEY is not set 231 | CONFIG_INET=y 232 | # CONFIG_IP_MULTICAST is not set 233 | # CONFIG_IP_ADVANCED_ROUTER is not set 234 | # CONFIG_IP_PNP is not set 235 | # CONFIG_NET_IPIP is not set 236 | # CONFIG_NET_IPGRE_DEMUX is not set 237 | # CONFIG_ARPD is not set 238 | # CONFIG_SYN_COOKIES is not set 239 | # CONFIG_INET_AH is not set 240 | # CONFIG_INET_ESP is not set 241 | # CONFIG_INET_IPCOMP is not set 242 | # CONFIG_INET_XFRM_TUNNEL is not set 243 | # CONFIG_INET_TUNNEL is not set 244 | # CONFIG_INET_XFRM_MODE_TRANSPORT is not set 245 | # CONFIG_INET_XFRM_MODE_TUNNEL is not set 246 | # CONFIG_INET_XFRM_MODE_BEET is not set 247 | # CONFIG_INET_LRO is not set 248 | # CONFIG_INET_DIAG is not set 249 | CONFIG_TCP_CONG_ADVANCED=y 250 | # CONFIG_TCP_CONG_BIC is not set 251 | # CONFIG_TCP_CONG_CUBIC is not set 252 | # CONFIG_TCP_CONG_WESTWOOD is not set 253 | # CONFIG_TCP_CONG_HTCP is not set 254 | # CONFIG_TCP_CONG_HSTCP is not set 255 | # CONFIG_TCP_CONG_HYBLA is not set 256 | # CONFIG_TCP_CONG_VEGAS is not set 257 | # CONFIG_TCP_CONG_SCALABLE is not set 258 | # CONFIG_TCP_CONG_LP is not set 259 | # CONFIG_TCP_CONG_VENO is not set 260 | # CONFIG_TCP_CONG_YEAH is not set 261 | # CONFIG_TCP_CONG_ILLINOIS is not set 262 | CONFIG_DEFAULT_RENO=y 263 | CONFIG_DEFAULT_TCP_CONG="reno" 264 | # CONFIG_TCP_MD5SIG is not set 265 | # CONFIG_IPV6 is not set 266 | # CONFIG_NETWORK_SECMARK is not set 267 | # CONFIG_NETWORK_PHY_TIMESTAMPING is not set 268 | # CONFIG_NETFILTER is not set 269 | # CONFIG_IP_DCCP is not set 270 | # CONFIG_IP_SCTP is not set 271 | # CONFIG_RDS is not set 272 | # CONFIG_TIPC is not set 273 | # CONFIG_ATM is not set 274 | # CONFIG_L2TP is not set 275 | # CONFIG_BRIDGE is not set 276 | CONFIG_HAVE_NET_DSA=y 277 | # CONFIG_VLAN_8021Q is not set 278 | # CONFIG_DECNET is not set 279 | # CONFIG_LLC2 is not set 280 | # CONFIG_IPX is not set 281 | # CONFIG_ATALK is not set 282 | # CONFIG_X25 is not set 283 | # CONFIG_LAPB is not set 284 | # CONFIG_PHONET is not set 285 | # CONFIG_IEEE802154 is not set 286 | # CONFIG_NET_SCHED is not set 287 | # CONFIG_DCB is not set 288 | # CONFIG_BATMAN_ADV is not set 289 | # CONFIG_OPENVSWITCH is not set 290 | # CONFIG_VSOCKETS is not set 291 | CONFIG_BQL=y 292 | 293 | # 294 | # Network testing 295 | # 296 | # CONFIG_NET_PKTGEN is not set 297 | # CONFIG_HAMRADIO is not set 298 | # CONFIG_CAN is not set 299 | # CONFIG_IRDA is not set 300 | # CONFIG_BT is not set 301 | # CONFIG_AF_RXRPC is not set 302 | # CONFIG_WIRELESS is not set 303 | # CONFIG_WIMAX is not set 304 | # CONFIG_RFKILL is not set 305 | # CONFIG_NET_9P is not set 306 | # CONFIG_CAIF is not set 307 | # CONFIG_CEPH_LIB is not set 308 | # CONFIG_NFC is not set 309 | 310 | # 311 | # Device Drivers 312 | # 313 | 314 | # 315 | # Generic Driver Options 316 | # 317 | CONFIG_UEVENT_HELPER_PATH="" 318 | CONFIG_DEVTMPFS=y 319 | CONFIG_DEVTMPFS_MOUNT=y 320 | CONFIG_STANDALONE=y 321 | # CONFIG_PREVENT_FIRMWARE_BUILD is not set 322 | # CONFIG_FW_LOADER is not set 323 | # CONFIG_DEBUG_DRIVER is not set 324 | # CONFIG_DEBUG_DEVRES is not set 325 | # CONFIG_SYS_HYPERVISOR is not set 326 | CONFIG_GENERIC_CPU_DEVICES=y 327 | # CONFIG_DMA_SHARED_BUFFER is not set 328 | 329 | # 330 | # Bus devices 331 | # 332 | # CONFIG_CONNECTOR is not set 333 | # CONFIG_MTD is not set 334 | CONFIG_DTC=y 335 | CONFIG_OF=y 336 | 337 | # 338 | # Device Tree and Open Firmware support 339 | # 340 | CONFIG_PROC_DEVICETREE=y 341 | # CONFIG_OF_SELFTEST is not set 342 | CONFIG_OF_FLATTREE=y 343 | CONFIG_OF_EARLY_FLATTREE=y 344 | CONFIG_OF_ADDRESS=y 345 | CONFIG_OF_IRQ=y 346 | CONFIG_OF_DEVICE=y 347 | CONFIG_OF_NET=y 348 | CONFIG_OF_MDIO=y 349 | # CONFIG_PARPORT is not set 350 | CONFIG_BLK_DEV=y 351 | # CONFIG_BLK_DEV_COW_COMMON is not set 352 | # CONFIG_BLK_DEV_LOOP is not set 353 | # CONFIG_BLK_DEV_DRBD is not set 354 | # CONFIG_BLK_DEV_NBD is not set 355 | # CONFIG_BLK_DEV_RAM is not set 356 | # CONFIG_CDROM_PKTCDVD is not set 357 | # CONFIG_ATA_OVER_ETH is not set 358 | # CONFIG_BLK_DEV_RBD is not set 359 | 360 | # 361 | # Misc devices 362 | # 363 | # CONFIG_SENSORS_LIS3LV02D is not set 364 | # CONFIG_ATMEL_SSC is not set 365 | # CONFIG_ENCLOSURE_SERVICES is not set 366 | # CONFIG_C2PORT is not set 367 | 368 | # 369 | # EEPROM support 370 | # 371 | # CONFIG_EEPROM_93CX6 is not set 372 | 373 | # 374 | # Texas Instruments shared transport line discipline 375 | # 376 | # CONFIG_TI_ST is not set 377 | 378 | # 379 | # Altera FPGA firmware download module 380 | # 381 | 382 | # 383 | # SCSI device support 384 | # 385 | CONFIG_SCSI_MOD=y 386 | # CONFIG_RAID_ATTRS is not set 387 | CONFIG_SCSI=y 388 | CONFIG_SCSI_DMA=y 389 | # CONFIG_SCSI_TGT is not set 390 | # CONFIG_SCSI_NETLINK is not set 391 | CONFIG_SCSI_PROC_FS=y 392 | 393 | # 394 | # SCSI support type (disk, tape, CD-ROM) 395 | # 396 | CONFIG_BLK_DEV_SD=y 397 | # CONFIG_CHR_DEV_ST is not set 398 | # CONFIG_CHR_DEV_OSST is not set 399 | # CONFIG_BLK_DEV_SR is not set 400 | # CONFIG_CHR_DEV_SG is not set 401 | # CONFIG_CHR_DEV_SCH is not set 402 | # CONFIG_SCSI_MULTI_LUN is not set 403 | # CONFIG_SCSI_CONSTANTS is not set 404 | # CONFIG_SCSI_LOGGING is not set 405 | # CONFIG_SCSI_SCAN_ASYNC is not set 406 | 407 | # 408 | # SCSI Transports 409 | # 410 | # CONFIG_SCSI_SPI_ATTRS is not set 411 | # CONFIG_SCSI_FC_ATTRS is not set 412 | # CONFIG_SCSI_ISCSI_ATTRS is not set 413 | # CONFIG_SCSI_SAS_ATTRS is not set 414 | # CONFIG_SCSI_SAS_LIBSAS is not set 415 | # CONFIG_SCSI_SRP_ATTRS is not set 416 | # CONFIG_SCSI_LOWLEVEL is not set 417 | # CONFIG_SCSI_LOWLEVEL_PCMCIA is not set 418 | # CONFIG_SCSI_DH is not set 419 | # CONFIG_SCSI_OSD_INITIATOR is not set 420 | CONFIG_ATA=y 421 | # CONFIG_ATA_NONSTANDARD is not set 422 | CONFIG_ATA_VERBOSE_ERROR=y 423 | CONFIG_SATA_PMP=y 424 | 425 | # 426 | # Controllers with non-SFF native interface 427 | # 428 | # CONFIG_SATA_AHCI_PLATFORM is not set 429 | CONFIG_ATA_SFF=y 430 | 431 | # 432 | # SFF controllers with custom DMA interface 433 | # 434 | # CONFIG_ATA_BMDMA is not set 435 | 436 | # 437 | # PIO-only SFF controllers 438 | # 439 | CONFIG_PATA_PLATFORM=y 440 | CONFIG_PATA_OF_PLATFORM=y 441 | 442 | # 443 | # Generic fallback / legacy drivers 444 | # 445 | # CONFIG_MD is not set 446 | # CONFIG_TARGET_CORE is not set 447 | CONFIG_NETDEVICES=y 448 | CONFIG_NET_CORE=y 449 | # CONFIG_BONDING is not set 450 | # CONFIG_DUMMY is not set 451 | # CONFIG_EQUALIZER is not set 452 | CONFIG_MII=y 453 | # CONFIG_NET_TEAM is not set 454 | # CONFIG_MACVLAN is not set 455 | # CONFIG_VXLAN is not set 456 | # CONFIG_NETCONSOLE is not set 457 | # CONFIG_NETPOLL is not set 458 | # CONFIG_NET_POLL_CONTROLLER is not set 459 | # CONFIG_TUN is not set 460 | # CONFIG_VETH is not set 461 | 462 | # 463 | # CAIF transport drivers 464 | # 465 | 466 | # 467 | # Distributed Switch Architecture drivers 468 | # 469 | # CONFIG_NET_DSA_MV88E6XXX is not set 470 | # CONFIG_NET_DSA_MV88E6060 is not set 471 | # CONFIG_NET_DSA_MV88E6XXX_NEED_PPU is not set 472 | # CONFIG_NET_DSA_MV88E6131 is not set 473 | # CONFIG_NET_DSA_MV88E6123_61_65 is not set 474 | CONFIG_ETHERNET=y 475 | # CONFIG_NET_CADENCE is not set 476 | # CONFIG_NET_VENDOR_BROADCOM is not set 477 | # CONFIG_NET_CALXEDA_XGMAC is not set 478 | # CONFIG_DNET is not set 479 | # CONFIG_NET_VENDOR_INTEL is not set 480 | # CONFIG_NET_VENDOR_MARVELL is not set 481 | # CONFIG_NET_VENDOR_MICREL is not set 482 | # CONFIG_NET_VENDOR_NATSEMI is not set 483 | CONFIG_ETHOC=y 484 | # CONFIG_NET_VENDOR_SEEQ is not set 485 | # CONFIG_NET_VENDOR_STMICRO is not set 486 | # CONFIG_NET_VENDOR_WIZNET is not set 487 | CONFIG_PHYLIB=y 488 | 489 | # 490 | # MII PHY device drivers 491 | # 492 | # CONFIG_AT803X_PHY is not set 493 | # CONFIG_AMD_PHY is not set 494 | # CONFIG_MARVELL_PHY is not set 495 | # CONFIG_DAVICOM_PHY is not set 496 | # CONFIG_QSEMI_PHY is not set 497 | # CONFIG_LXT_PHY is not set 498 | # CONFIG_CICADA_PHY is not set 499 | # CONFIG_VITESSE_PHY is not set 500 | # CONFIG_SMSC_PHY is not set 501 | # CONFIG_BROADCOM_PHY is not set 502 | # CONFIG_BCM87XX_PHY is not set 503 | # CONFIG_ICPLUS_PHY is not set 504 | # CONFIG_REALTEK_PHY is not set 505 | # CONFIG_NATIONAL_PHY is not set 506 | # CONFIG_STE10XP is not set 507 | # CONFIG_LSI_ET1011C_PHY is not set 508 | CONFIG_MICREL_PHY=y 509 | # CONFIG_FIXED_PHY is not set 510 | # CONFIG_MDIO_BITBANG is not set 511 | # CONFIG_MDIO_BUS_MUX_GPIO is not set 512 | # CONFIG_MDIO_BUS_MUX_MMIOREG is not set 513 | # CONFIG_PPP is not set 514 | # CONFIG_SLIP is not set 515 | # CONFIG_WLAN is not set 516 | 517 | # 518 | # Enable WiMAX (Networking options) to see the WiMAX drivers 519 | # 520 | # CONFIG_WAN is not set 521 | # CONFIG_ISDN is not set 522 | 523 | # 524 | # Input device support 525 | # 526 | CONFIG_INPUT=y 527 | # CONFIG_INPUT_FF_MEMLESS is not set 528 | # CONFIG_INPUT_POLLDEV is not set 529 | # CONFIG_INPUT_SPARSEKMAP is not set 530 | # CONFIG_INPUT_MATRIXKMAP is not set 531 | 532 | # 533 | # Userland interfaces 534 | # 535 | CONFIG_INPUT_MOUSEDEV=y 536 | CONFIG_INPUT_MOUSEDEV_PSAUX=y 537 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=640 538 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=400 539 | # CONFIG_INPUT_JOYDEV is not set 540 | # CONFIG_INPUT_EVDEV is not set 541 | # CONFIG_INPUT_EVBUG is not set 542 | 543 | # 544 | # Input Device Drivers 545 | # 546 | CONFIG_INPUT_KEYBOARD=y 547 | CONFIG_KEYBOARD_ATKBD=y 548 | # CONFIG_KEYBOARD_LKKBD is not set 549 | # CONFIG_KEYBOARD_GPIO is not set 550 | # CONFIG_KEYBOARD_GPIO_POLLED is not set 551 | # CONFIG_KEYBOARD_MATRIX is not set 552 | # CONFIG_KEYBOARD_NEWTON is not set 553 | # CONFIG_KEYBOARD_OPENCORES is not set 554 | # CONFIG_KEYBOARD_STOWAWAY is not set 555 | # CONFIG_KEYBOARD_SUNKBD is not set 556 | # CONFIG_KEYBOARD_XTKBD is not set 557 | CONFIG_INPUT_MOUSE=y 558 | # CONFIG_MOUSE_PS2 is not set 559 | # CONFIG_MOUSE_SERIAL is not set 560 | # CONFIG_MOUSE_VSXXXAA is not set 561 | # CONFIG_MOUSE_GPIO is not set 562 | # CONFIG_INPUT_JOYSTICK is not set 563 | # CONFIG_INPUT_TABLET is not set 564 | CONFIG_INPUT_TOUCHSCREEN=y 565 | # CONFIG_TOUCHSCREEN_AD7879 is not set 566 | # CONFIG_TOUCHSCREEN_CYTTSP_CORE is not set 567 | # CONFIG_TOUCHSCREEN_DYNAPRO is not set 568 | # CONFIG_TOUCHSCREEN_HAMPSHIRE is not set 569 | # CONFIG_TOUCHSCREEN_FUJITSU is not set 570 | # CONFIG_TOUCHSCREEN_GUNZE is not set 571 | # CONFIG_TOUCHSCREEN_ELO is not set 572 | # CONFIG_TOUCHSCREEN_WACOM_W8001 is not set 573 | CONFIG_TOUCHSCREEN_LPC32XX=y 574 | # CONFIG_TOUCHSCREEN_MTOUCH is not set 575 | # CONFIG_TOUCHSCREEN_INEXIO is not set 576 | # CONFIG_TOUCHSCREEN_MK712 is not set 577 | # CONFIG_TOUCHSCREEN_PENMOUNT is not set 578 | # CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set 579 | # CONFIG_TOUCHSCREEN_TOUCHWIN is not set 580 | # CONFIG_TOUCHSCREEN_TOUCHIT213 is not set 581 | # CONFIG_TOUCHSCREEN_TSC_SERIO is not set 582 | # CONFIG_INPUT_MISC is not set 583 | 584 | # 585 | # Hardware I/O ports 586 | # 587 | CONFIG_SERIO=y 588 | CONFIG_SERIO_I8042=y 589 | CONFIG_SERIO_SERPORT=y 590 | CONFIG_SERIO_LIBPS2=y 591 | # CONFIG_SERIO_RAW is not set 592 | # CONFIG_SERIO_ALTERA_PS2 is not set 593 | # CONFIG_SERIO_PS2MULT is not set 594 | # CONFIG_SERIO_OPENCORES_PS2 is not set 595 | # CONFIG_SERIO_ARC_PS2 is not set 596 | # CONFIG_GAMEPORT is not set 597 | 598 | # 599 | # Character devices 600 | # 601 | CONFIG_TTY=y 602 | CONFIG_VT=y 603 | CONFIG_CONSOLE_TRANSLATIONS=y 604 | CONFIG_VT_CONSOLE=y 605 | CONFIG_HW_CONSOLE=y 606 | # CONFIG_VT_HW_CONSOLE_BINDING is not set 607 | CONFIG_UNIX98_PTYS=y 608 | # CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set 609 | # CONFIG_LEGACY_PTYS is not set 610 | # CONFIG_SERIAL_NONSTANDARD is not set 611 | # CONFIG_N_GSM is not set 612 | # CONFIG_TRACE_SINK is not set 613 | # CONFIG_DEVKMEM is not set 614 | 615 | # 616 | # Serial drivers 617 | # 618 | CONFIG_SERIAL_8250=y 619 | CONFIG_SERIAL_8250_DEPRECATED_OPTIONS=y 620 | CONFIG_SERIAL_8250_CONSOLE=y 621 | CONFIG_SERIAL_8250_NR_UARTS=4 622 | CONFIG_SERIAL_8250_RUNTIME_UARTS=4 623 | # CONFIG_SERIAL_8250_EXTENDED is not set 624 | # CONFIG_SERIAL_8250_DW is not set 625 | 626 | # 627 | # Non-8250 serial port support 628 | # 629 | CONFIG_SERIAL_CORE=y 630 | CONFIG_SERIAL_CORE_CONSOLE=y 631 | CONFIG_SERIAL_OF_PLATFORM=y 632 | # CONFIG_SERIAL_SCCNXP is not set 633 | # CONFIG_SERIAL_TIMBERDALE is not set 634 | # CONFIG_SERIAL_ALTERA_JTAGUART is not set 635 | # CONFIG_SERIAL_ALTERA_UART is not set 636 | # CONFIG_SERIAL_XILINX_PS_UART is not set 637 | # CONFIG_SERIAL_ARC is not set 638 | # CONFIG_TTY_PRINTK is not set 639 | # CONFIG_IPMI_HANDLER is not set 640 | # CONFIG_HW_RANDOM is not set 641 | # CONFIG_RTC is not set 642 | # CONFIG_GEN_RTC is not set 643 | # CONFIG_R3964 is not set 644 | 645 | # 646 | # PCMCIA character devices 647 | # 648 | # CONFIG_RAW_DRIVER is not set 649 | # CONFIG_TCG_TPM is not set 650 | # CONFIG_ARC_SCET is not set 651 | # CONFIG_I2C is not set 652 | # CONFIG_SPI is not set 653 | # CONFIG_HSI is not set 654 | 655 | # 656 | # PPS support 657 | # 658 | # CONFIG_PPS is not set 659 | 660 | # 661 | # PPS generators support 662 | # 663 | 664 | # 665 | # PTP clock support 666 | # 667 | # CONFIG_PTP_1588_CLOCK is not set 668 | 669 | # 670 | # Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks. 671 | # 672 | # CONFIG_PTP_1588_CLOCK_PCH is not set 673 | CONFIG_ARCH_REQUIRE_GPIOLIB=y 674 | CONFIG_GPIO_DEVRES=y 675 | CONFIG_GPIOLIB=y 676 | CONFIG_OF_GPIO=y 677 | # CONFIG_DEBUG_GPIO is not set 678 | # CONFIG_GPIO_SYSFS is not set 679 | 680 | # 681 | # Memory mapped GPIO drivers: 682 | # 683 | # CONFIG_GPIO_GENERIC_PLATFORM is not set 684 | # CONFIG_GPIO_TS5500 is not set 685 | # CONFIG_GPIO_JBTRIVIAL is not set 686 | 687 | # 688 | # I2C GPIO expanders: 689 | # 690 | 691 | # 692 | # PCI GPIO expanders: 693 | # 694 | 695 | # 696 | # SPI GPIO expanders: 697 | # 698 | 699 | # 700 | # AC97 GPIO expanders: 701 | # 702 | 703 | # 704 | # MODULbus GPIO expanders: 705 | # 706 | 707 | # 708 | # USB GPIO expanders: 709 | # 710 | # CONFIG_W1 is not set 711 | # CONFIG_POWER_SUPPLY is not set 712 | # CONFIG_POWER_AVS is not set 713 | # CONFIG_HWMON is not set 714 | # CONFIG_THERMAL is not set 715 | # CONFIG_WATCHDOG is not set 716 | CONFIG_SSB_POSSIBLE=y 717 | 718 | # 719 | # Sonics Silicon Backplane 720 | # 721 | # CONFIG_SSB is not set 722 | CONFIG_BCMA_POSSIBLE=y 723 | 724 | # 725 | # Broadcom specific AMBA 726 | # 727 | # CONFIG_BCMA is not set 728 | 729 | # 730 | # Multifunction device drivers 731 | # 732 | # CONFIG_MFD_CORE is not set 733 | # CONFIG_MFD_SM501 is not set 734 | # CONFIG_MFD_TI_AM335X_TSCADC is not set 735 | # CONFIG_HTC_PASIC3 is not set 736 | # CONFIG_MFD_TMIO is not set 737 | # CONFIG_ABX500_CORE is not set 738 | # CONFIG_MFD_SYSCON is not set 739 | # CONFIG_REGULATOR is not set 740 | # CONFIG_MEDIA_SUPPORT is not set 741 | 742 | # 743 | # Graphics support 744 | # 745 | # CONFIG_DRM is not set 746 | # CONFIG_VGASTATE is not set 747 | # CONFIG_VIDEO_OUTPUT_CONTROL is not set 748 | # CONFIG_OF_DISPLAY_TIMING is not set 749 | # CONFIG_OF_VIDEOMODE is not set 750 | CONFIG_FB=y 751 | # CONFIG_FIRMWARE_EDID is not set 752 | # CONFIG_FB_DDC is not set 753 | # CONFIG_FB_BOOT_VESA_SUPPORT is not set 754 | CONFIG_FB_CFB_FILLRECT=y 755 | CONFIG_FB_CFB_COPYAREA=y 756 | CONFIG_FB_CFB_IMAGEBLIT=y 757 | # CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set 758 | # CONFIG_FB_SYS_FILLRECT is not set 759 | # CONFIG_FB_SYS_COPYAREA is not set 760 | # CONFIG_FB_SYS_IMAGEBLIT is not set 761 | # CONFIG_FB_FOREIGN_ENDIAN is not set 762 | # CONFIG_FB_SYS_FOPS is not set 763 | # CONFIG_FB_WMT_GE_ROPS is not set 764 | # CONFIG_FB_SVGALIB is not set 765 | # CONFIG_FB_MACMODES is not set 766 | # CONFIG_FB_BACKLIGHT is not set 767 | # CONFIG_FB_MODE_HELPERS is not set 768 | # CONFIG_FB_TILEBLITTING is not set 769 | 770 | # 771 | # Frame buffer hardware drivers 772 | # 773 | CONFIG_FB_OC=y 774 | CONFIG_FB_OC_SHMEM=y 775 | # CONFIG_FB_S1D13XXX is not set 776 | # CONFIG_FB_GOLDFISH is not set 777 | # CONFIG_FB_VIRTUAL is not set 778 | # CONFIG_FB_METRONOME is not set 779 | # CONFIG_FB_BROADSHEET is not set 780 | # CONFIG_FB_AUO_K190X is not set 781 | # CONFIG_EXYNOS_VIDEO is not set 782 | # CONFIG_BACKLIGHT_LCD_SUPPORT is not set 783 | 784 | # 785 | # Console display driver support 786 | # 787 | # CONFIG_VGA_CONSOLE is not set 788 | CONFIG_DUMMY_CONSOLE=y 789 | # CONFIG_FRAMEBUFFER_CONSOLE is not set 790 | # CONFIG_LOGO is not set 791 | # CONFIG_SOUND is not set 792 | 793 | # 794 | # HID support 795 | # 796 | CONFIG_HID=y 797 | # CONFIG_HIDRAW is not set 798 | # CONFIG_UHID is not set 799 | CONFIG_HID_GENERIC=y 800 | 801 | # 802 | # Special HID drivers 803 | # 804 | # CONFIG_USB_ARCH_HAS_EHCI is not set 805 | # CONFIG_USB_ARCH_HAS_XHCI is not set 806 | # CONFIG_USB_SUPPORT is not set 807 | # CONFIG_MMC is not set 808 | # CONFIG_MEMSTICK is not set 809 | # CONFIG_NEW_LEDS is not set 810 | # CONFIG_ACCESSIBILITY is not set 811 | # CONFIG_RTC_CLASS is not set 812 | # CONFIG_DMADEVICES is not set 813 | # CONFIG_AUXDISPLAY is not set 814 | # CONFIG_UIO is not set 815 | 816 | # 817 | # Virtio drivers 818 | # 819 | # CONFIG_VIRTIO_MMIO is not set 820 | 821 | # 822 | # Microsoft Hyper-V guest support 823 | # 824 | # CONFIG_STAGING is not set 825 | 826 | # 827 | # Hardware Spinlock drivers 828 | # 829 | # CONFIG_MAILBOX is not set 830 | # CONFIG_IOMMU_SUPPORT is not set 831 | 832 | # 833 | # Remoteproc drivers 834 | # 835 | # CONFIG_STE_MODEM_RPROC is not set 836 | 837 | # 838 | # Rpmsg drivers 839 | # 840 | # CONFIG_VIRT_DRIVERS is not set 841 | # CONFIG_PM_DEVFREQ is not set 842 | # CONFIG_EXTCON is not set 843 | # CONFIG_MEMORY is not set 844 | # CONFIG_IIO is not set 845 | # CONFIG_PWM is not set 846 | CONFIG_IRQCHIP=y 847 | # CONFIG_IPACK_BUS is not set 848 | 849 | # 850 | # File systems 851 | # 852 | CONFIG_EXT2_FS=y 853 | # CONFIG_EXT2_FS_XATTR is not set 854 | # CONFIG_EXT2_FS_XIP is not set 855 | # CONFIG_EXT3_FS is not set 856 | # CONFIG_EXT4_FS is not set 857 | # CONFIG_REISERFS_FS is not set 858 | # CONFIG_JFS_FS is not set 859 | # CONFIG_XFS_FS is not set 860 | # CONFIG_GFS2_FS is not set 861 | # CONFIG_BTRFS_FS is not set 862 | # CONFIG_NILFS2_FS is not set 863 | # CONFIG_FS_POSIX_ACL is not set 864 | CONFIG_FILE_LOCKING=y 865 | CONFIG_FSNOTIFY=y 866 | # CONFIG_DNOTIFY is not set 867 | CONFIG_INOTIFY_USER=y 868 | # CONFIG_FANOTIFY is not set 869 | # CONFIG_QUOTA is not set 870 | # CONFIG_QUOTACTL is not set 871 | # CONFIG_AUTOFS4_FS is not set 872 | # CONFIG_FUSE_FS is not set 873 | 874 | # 875 | # Caches 876 | # 877 | # CONFIG_FSCACHE is not set 878 | 879 | # 880 | # CD-ROM/DVD Filesystems 881 | # 882 | # CONFIG_ISO9660_FS is not set 883 | # CONFIG_UDF_FS is not set 884 | 885 | # 886 | # DOS/FAT/NT Filesystems 887 | # 888 | # CONFIG_MSDOS_FS is not set 889 | # CONFIG_VFAT_FS is not set 890 | # CONFIG_NTFS_FS is not set 891 | 892 | # 893 | # Pseudo filesystems 894 | # 895 | CONFIG_PROC_FS=y 896 | # CONFIG_PROC_KCORE is not set 897 | CONFIG_PROC_SYSCTL=y 898 | CONFIG_PROC_PAGE_MONITOR=y 899 | CONFIG_SYSFS=y 900 | CONFIG_TMPFS=y 901 | # CONFIG_TMPFS_POSIX_ACL is not set 902 | # CONFIG_TMPFS_XATTR is not set 903 | # CONFIG_HUGETLB_PAGE is not set 904 | # CONFIG_CONFIGFS_FS is not set 905 | # CONFIG_MISC_FILESYSTEMS is not set 906 | CONFIG_NETWORK_FILESYSTEMS=y 907 | CONFIG_NFS_FS=y 908 | CONFIG_NFS_V2=y 909 | CONFIG_NFS_V3=y 910 | # CONFIG_NFS_V3_ACL is not set 911 | # CONFIG_NFS_V4 is not set 912 | # CONFIG_NFS_SWAP is not set 913 | # CONFIG_NFSD is not set 914 | CONFIG_LOCKD=y 915 | CONFIG_LOCKD_V4=y 916 | CONFIG_NFS_COMMON=y 917 | CONFIG_SUNRPC=y 918 | # CONFIG_SUNRPC_DEBUG is not set 919 | # CONFIG_CEPH_FS is not set 920 | # CONFIG_CIFS is not set 921 | # CONFIG_NCP_FS is not set 922 | # CONFIG_CODA_FS is not set 923 | # CONFIG_AFS_FS is not set 924 | # CONFIG_NLS is not set 925 | 926 | # 927 | # Security options 928 | # 929 | # CONFIG_KEYS is not set 930 | # CONFIG_SECURITY_DMESG_RESTRICT is not set 931 | # CONFIG_SECURITY is not set 932 | # CONFIG_SECURITYFS is not set 933 | CONFIG_DEFAULT_SECURITY_DAC=y 934 | CONFIG_DEFAULT_SECURITY="" 935 | CONFIG_CRYPTO=y 936 | 937 | # 938 | # Crypto core or helper 939 | # 940 | # CONFIG_CRYPTO_FIPS is not set 941 | CONFIG_CRYPTO_ALGAPI=y 942 | CONFIG_CRYPTO_ALGAPI2=y 943 | CONFIG_CRYPTO_RNG=m 944 | CONFIG_CRYPTO_RNG2=m 945 | # CONFIG_CRYPTO_MANAGER is not set 946 | # CONFIG_CRYPTO_MANAGER2 is not set 947 | # CONFIG_CRYPTO_USER is not set 948 | # CONFIG_CRYPTO_GF128MUL is not set 949 | # CONFIG_CRYPTO_NULL is not set 950 | # CONFIG_CRYPTO_CRYPTD is not set 951 | # CONFIG_CRYPTO_AUTHENC is not set 952 | # CONFIG_CRYPTO_TEST is not set 953 | 954 | # 955 | # Authenticated Encryption with Associated Data 956 | # 957 | # CONFIG_CRYPTO_CCM is not set 958 | # CONFIG_CRYPTO_GCM is not set 959 | # CONFIG_CRYPTO_SEQIV is not set 960 | 961 | # 962 | # Block modes 963 | # 964 | # CONFIG_CRYPTO_CBC is not set 965 | # CONFIG_CRYPTO_CTR is not set 966 | # CONFIG_CRYPTO_CTS is not set 967 | # CONFIG_CRYPTO_ECB is not set 968 | # CONFIG_CRYPTO_LRW is not set 969 | # CONFIG_CRYPTO_PCBC is not set 970 | # CONFIG_CRYPTO_XTS is not set 971 | 972 | # 973 | # Hash modes 974 | # 975 | # CONFIG_CRYPTO_HMAC is not set 976 | # CONFIG_CRYPTO_XCBC is not set 977 | # CONFIG_CRYPTO_VMAC is not set 978 | 979 | # 980 | # Digest 981 | # 982 | # CONFIG_CRYPTO_CRC32C is not set 983 | # CONFIG_CRYPTO_CRC32 is not set 984 | # CONFIG_CRYPTO_GHASH is not set 985 | # CONFIG_CRYPTO_MD4 is not set 986 | # CONFIG_CRYPTO_MD5 is not set 987 | # CONFIG_CRYPTO_MICHAEL_MIC is not set 988 | # CONFIG_CRYPTO_RMD128 is not set 989 | # CONFIG_CRYPTO_RMD160 is not set 990 | # CONFIG_CRYPTO_RMD256 is not set 991 | # CONFIG_CRYPTO_RMD320 is not set 992 | # CONFIG_CRYPTO_SHA1 is not set 993 | # CONFIG_CRYPTO_SHA256 is not set 994 | # CONFIG_CRYPTO_SHA512 is not set 995 | # CONFIG_CRYPTO_TGR192 is not set 996 | # CONFIG_CRYPTO_WP512 is not set 997 | 998 | # 999 | # Ciphers 1000 | # 1001 | CONFIG_CRYPTO_AES=y 1002 | # CONFIG_CRYPTO_ANUBIS is not set 1003 | # CONFIG_CRYPTO_ARC4 is not set 1004 | # CONFIG_CRYPTO_BLOWFISH is not set 1005 | # CONFIG_CRYPTO_CAMELLIA is not set 1006 | # CONFIG_CRYPTO_CAST5 is not set 1007 | # CONFIG_CRYPTO_CAST6 is not set 1008 | # CONFIG_CRYPTO_DES is not set 1009 | # CONFIG_CRYPTO_FCRYPT is not set 1010 | # CONFIG_CRYPTO_KHAZAD is not set 1011 | # CONFIG_CRYPTO_SALSA20 is not set 1012 | # CONFIG_CRYPTO_SEED is not set 1013 | # CONFIG_CRYPTO_SERPENT is not set 1014 | # CONFIG_CRYPTO_TEA is not set 1015 | # CONFIG_CRYPTO_TWOFISH is not set 1016 | 1017 | # 1018 | # Compression 1019 | # 1020 | # CONFIG_CRYPTO_DEFLATE is not set 1021 | # CONFIG_CRYPTO_ZLIB is not set 1022 | # CONFIG_CRYPTO_LZO is not set 1023 | 1024 | # 1025 | # Random Number Generation 1026 | # 1027 | CONFIG_CRYPTO_ANSI_CPRNG=m 1028 | # CONFIG_CRYPTO_USER_API_HASH is not set 1029 | # CONFIG_CRYPTO_USER_API_SKCIPHER is not set 1030 | CONFIG_CRYPTO_HW=y 1031 | # CONFIG_BINARY_PRINTF is not set 1032 | 1033 | # 1034 | # Library routines 1035 | # 1036 | CONFIG_BITREVERSE=y 1037 | CONFIG_GENERIC_STRNCPY_FROM_USER=y 1038 | CONFIG_GENERIC_STRNLEN_USER=y 1039 | CONFIG_GENERIC_PCI_IOMAP=y 1040 | CONFIG_GENERIC_IOMAP=y 1041 | CONFIG_GENERIC_IO=y 1042 | # CONFIG_CRC_CCITT is not set 1043 | # CONFIG_CRC16 is not set 1044 | # CONFIG_CRC_T10DIF is not set 1045 | # CONFIG_CRC_ITU_T is not set 1046 | CONFIG_CRC32=y 1047 | # CONFIG_CRC32_SELFTEST is not set 1048 | CONFIG_CRC32_SLICEBY8=y 1049 | # CONFIG_CRC32_SLICEBY4 is not set 1050 | # CONFIG_CRC32_SARWATE is not set 1051 | # CONFIG_CRC32_BIT is not set 1052 | # CONFIG_CRC7 is not set 1053 | # CONFIG_LIBCRC32C is not set 1054 | # CONFIG_CRC8 is not set 1055 | # CONFIG_XZ_DEC is not set 1056 | # CONFIG_XZ_DEC_BCJ is not set 1057 | CONFIG_HAS_IOMEM=y 1058 | CONFIG_HAS_DMA=y 1059 | CONFIG_DQL=y 1060 | CONFIG_NLATTR=y 1061 | CONFIG_GENERIC_ATOMIC64=y 1062 | CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y 1063 | # CONFIG_AVERAGE is not set 1064 | # CONFIG_CORDIC is not set 1065 | # CONFIG_DDR is not set 1066 | 1067 | # 1068 | # Kernel hacking 1069 | # 1070 | # CONFIG_PRINTK_TIME is not set 1071 | CONFIG_DEFAULT_MESSAGE_LOGLEVEL=4 1072 | # CONFIG_ENABLE_WARN_DEPRECATED is not set 1073 | # CONFIG_ENABLE_MUST_CHECK is not set 1074 | CONFIG_FRAME_WARN=1024 1075 | # CONFIG_MAGIC_SYSRQ is not set 1076 | # CONFIG_STRIP_ASM_SYMS is not set 1077 | # CONFIG_READABLE_ASM is not set 1078 | # CONFIG_UNUSED_SYMBOLS is not set 1079 | # CONFIG_DEBUG_FS is not set 1080 | # CONFIG_HEADERS_CHECK is not set 1081 | # CONFIG_DEBUG_SECTION_MISMATCH is not set 1082 | CONFIG_DEBUG_KERNEL=y 1083 | # CONFIG_DEBUG_SHIRQ is not set 1084 | # CONFIG_LOCKUP_DETECTOR is not set 1085 | # CONFIG_PANIC_ON_OOPS is not set 1086 | CONFIG_PANIC_ON_OOPS_VALUE=0 1087 | # CONFIG_DETECT_HUNG_TASK is not set 1088 | CONFIG_SCHED_DEBUG=y 1089 | # CONFIG_SCHEDSTATS is not set 1090 | # CONFIG_TIMER_STATS is not set 1091 | # CONFIG_DEBUG_OBJECTS is not set 1092 | # CONFIG_DEBUG_RT_MUTEXES is not set 1093 | # CONFIG_RT_MUTEX_TESTER is not set 1094 | # CONFIG_DEBUG_SPINLOCK is not set 1095 | # CONFIG_DEBUG_MUTEXES is not set 1096 | # CONFIG_DEBUG_ATOMIC_SLEEP is not set 1097 | # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set 1098 | # CONFIG_DEBUG_STACK_USAGE is not set 1099 | # CONFIG_DEBUG_KOBJECT is not set 1100 | # CONFIG_DEBUG_INFO is not set 1101 | # CONFIG_DEBUG_VM is not set 1102 | # CONFIG_DEBUG_WRITECOUNT is not set 1103 | # CONFIG_DEBUG_MEMORY_INIT is not set 1104 | # CONFIG_DEBUG_LIST is not set 1105 | # CONFIG_TEST_LIST_SORT is not set 1106 | # CONFIG_DEBUG_SG is not set 1107 | # CONFIG_DEBUG_NOTIFIERS is not set 1108 | # CONFIG_DEBUG_CREDENTIALS is not set 1109 | 1110 | # 1111 | # RCU Debugging 1112 | # 1113 | # CONFIG_SPARSE_RCU_POINTER is not set 1114 | # CONFIG_RCU_TORTURE_TEST is not set 1115 | # CONFIG_RCU_TRACE is not set 1116 | # CONFIG_BACKTRACE_SELF_TEST is not set 1117 | # CONFIG_DEBUG_BLOCK_EXT_DEVT is not set 1118 | # CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set 1119 | # CONFIG_NOTIFIER_ERROR_INJECTION is not set 1120 | # CONFIG_FAULT_INJECTION is not set 1121 | # CONFIG_DEBUG_PAGEALLOC is not set 1122 | # CONFIG_RBTREE_TEST is not set 1123 | # CONFIG_INTERVAL_TREE_TEST is not set 1124 | # CONFIG_ATOMIC64_SELFTEST is not set 1125 | # CONFIG_SAMPLES is not set 1126 | # CONFIG_TEST_KSTRTOX is not set 1127 | --------------------------------------------------------------------------------