(OK) mptcp_android-x86-kernel-4.4.12-debug-vbox.txt

来源:互联网 发布:陈华编程社区 laravel 编辑:程序博客网 时间:2024/06/12 23:31


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++in PC++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++# ls /opt/android-x86/android-x86-6.0-rc1  mptcp_v0.91  mptcp_v0.91.zip  mptcp-v4.1-156b088f1a77.patch  mptcp-v4.1.20-856ebd0cac21.patch-------------------------------[root@localhost android-x86-6.0-rc1]# pwd/opt/android-x86/android-x86-6.0-rc1[root@localhost android-x86-6.0-rc1]# -------------------------------[root@localhost kernel]# pwd/opt/android-x86/android-x86-6.0-rc1/kernel[root@localhost kernel]# lsandroid     block    CREDITS        drivers   include  Kbuild   lib          mm      REPORTING-BUGS  security  usrAndroid.mk  certs    crypto         firmware  init     Kconfig  MAINTAINERS  net     samples         sound     virtarch        COPYING  Documentation  fs        ipc      kernel   Makefile     README  scripts         tools[root@localhost kernel]# -------------------------------mptcp-v4.1.20-856ebd0cac21.patch  download from  http://multipath-tcp.org/patches/mptcp_v0.91.zip.part  download from  https://github.com/multipath-tcp/mptcp[root@localhost mptcp_v0.91]# pwd/opt/android-x86/mptcp_v0.91[root@localhost mptcp_v0.91]# lsarch     CREDITS        drivers   include  Kbuild   lib          mm      REPORTING-BUGS  security  usrblock    crypto         firmware  init     Kconfig  MAINTAINERS  net     samples         sound     virtCOPYING  Documentation  fs        ipc      kernel   Makefile     README  scripts         tools[root@localhost mptcp_v0.91]# find . -name mptcp*./include/net/mptcp.h./include/net/mptcp_v4.h./include/net/mptcp_v6.h./include/net/netns/mptcp.h./net/mptcp./net/mptcp/mptcp_balia.c./net/mptcp/mptcp_binder.c./net/mptcp/mptcp_coupled.c./net/mptcp/mptcp_ctrl.c./net/mptcp/mptcp_fullmesh.c./net/mptcp/mptcp_input.c./net/mptcp/mptcp_ipv4.c./net/mptcp/mptcp_ipv6.c./net/mptcp/mptcp_ndiffports.c./net/mptcp/mptcp_ofo_queue.c./net/mptcp/mptcp_olia.c./net/mptcp/mptcp_output.c./net/mptcp/mptcp_pm.c./net/mptcp/mptcp_redundant.c./net/mptcp/mptcp_rr.c./net/mptcp/mptcp_sched.c./net/mptcp/mptcp_wvegas.c[root@localhost mptcp_v0.91]# grep mptcp -R .|cut -d: -f1|uniq./Documentation/networking/ip-sysctl.txt./include/linux/tcp.h./include/net/inet_sock.h./include/net/net_namespace.h./include/net/tcp.h./net/Kconfig./net/Makefile./net/core/sock.c./net/ipv4/af_inet.c./net/ipv4/inet_connection_sock.c./net/ipv4/ip_sockglue.c./net/ipv4/syncookies.c./net/ipv4/tcp.c./net/ipv4/tcp_fastopen.c./net/ipv4/tcp_input.c./net/ipv4/tcp_ipv4.c./net/ipv4/tcp_minisocks.c./net/ipv4/tcp_output.c./net/ipv4/tcp_timer.c./net/ipv6/ipv6_sockglue.c./net/ipv6/syncookies.c./net/ipv6/tcp_ipv6.c./include/net/mptcp.h./include/net/mptcp_v4.h./include/net/mptcp_v6.h./include/net/netns/mptcp.h./net/mptcp/Kconfig./net/mptcp/Makefile./net/mptcp/mptcp_balia.c./net/mptcp/mptcp_binder.c./net/mptcp/mptcp_coupled.c./net/mptcp/mptcp_ctrl.c./net/mptcp/mptcp_fullmesh.c./net/mptcp/mptcp_input.c./net/mptcp/mptcp_ipv4.c./net/mptcp/mptcp_ipv6.c./net/mptcp/mptcp_ndiffports.c./net/mptcp/mptcp_ofo_queue.c./net/mptcp/mptcp_olia.c./net/mptcp/mptcp_output.c./net/mptcp/mptcp_pm.c./net/mptcp/mptcp_redundant.c./net/mptcp/mptcp_rr.c./net/mptcp/mptcp_sched.c./net/mptcp/mptcp_wvegas.c[root@localhost mptcp_v0.91]# cp -a net/mptcp/ /opt/android-x86/android-x86-6.0-rc1/kernel/net/cp include/net/mptcp.h /opt/android-x86/android-x86-6.0-rc1/kernel/include/net/cp include/net/mptcp_v4.h /opt/android-x86/android-x86-6.0-rc1/kernel/include/net/cp include/net/mptcp_v6.h /opt/android-x86/android-x86-6.0-rc1/kernel/include/net/cp include/net/netns/mptcp.h /opt/android-x86/android-x86-6.0-rc1/kernel/include/net/netns/-------------------------------now, modify files above, can refer to mptcp-v4.1.20-856ebd0cac21.patch-------------------------------modify /opt/android-x86/android-x86-6.0-rc1/kernel/* abiding by /opt/android-x86/mptcp_v0.91/*-------------------------------[root@localhost android-x86-6.0-rc1]# pwd/opt/android-x86/android-x86-6.0-rc1[root@localhost android-x86-6.0-rc1]# lsfind-alter-files.sh  kernel  kernel.tmp  timestamp.txt[root@localhost android-x86-6.0-rc1]# touch ../timestamp.txt// important[root@localhost android-x86-6.0-rc1]# cd kernel[root@localhost kernel]# pwd/opt/android-x86/android-x86-6.0-rc1/kernel[root@localhost kernel]# gedit -------------------------------Note: the following files may cause problems.-------------------------------diff --git a/include/net/request_sock.h b/include/net/request_sock.h int reqsk_queue_alloc(struct request_sock_queue *queue,-      unsigned int nr_table_entries);+      unsigned int nr_table_entries, gfp_t flags);---> void reqsk_queue_alloc(struct request_sock_queue *queue, gfp_t flags);diff --git  include/net/tcp.h//__u32 (*cookie_init_seq)(const struct sk_buff *skb,// __u16 *mss);__u32 (*cookie_init_seq)(const struct sk_buff *skb, __u16 *mss, struct request_sock *req, struct sock *sk);net/core/request_sock.creqsk_queue_alloc(struct request_sock_queue *queue, gfp_t flags)net/ipv4/inet_connection_sock.cnou32 inet_synq_hash()net/ipv4/syncookies.c__u32 cookie_v4_init_sequence(const struct sk_buff *skb, __u16 *mssp)net/ipv4/tcp_fastopen.cnet/ipv4/tcp_minisocks.cif (!is_meta_sk(sk))net/ipv4/tcp_output.cvoid tcp_set_skb_tso_segs(struct sk_buff *skb, unsigned int mss_now)net/ipv6/inet6_connection_sock.cinet6_synq_hash()net/mptcp/mptcp_output.ctcp_xmit_probe_skb(sk_it, 0); -->  tcp_xmit_probe_skb(sk_it, 0, LINUX_MIB_TCPWINPROBE);-------------------------------copy files to IBM Server-------------------------------[root@localhost android-x86-6.0-rc1]# pwd/opt/android-x86/android-x86-6.0-rc1[root@localhost android-x86-6.0-rc1]# lsfind-alter-files.sh  kernel  timestamp.txt[root@localhost android-x86-6.0-rc1]# rm /root/opt/android-x86/android-x86-6.0-rc1/kernel -rf[root@localhost android-x86-6.0-rc1]# ./find-alter-files.sh kernel[root@localhost android-x86-6.0-rc1]# scp -r /root/opt/android-x86/android-x86-6.0-rc1/kernel 10.109.253.80:/opt/android-x86/android-x86-6.0-rc1/-------------------------------copy files to IBM Server-------------------------------[root@localhost kernel]# pwd/opt/android-x86/android-x86-6.0-rc1/kernel/[root@localhost kernel]# scp -r net/mptcp/ 10.109.253.80:/opt/android-x86/android-x86-6.0-rc1/kernel/net/scp include/net/mptcp.h 10.109.253.80:/opt/android-x86/android-x86-6.0-rc1/kernel/include/net/scp include/net/mptcp_v4.h 10.109.253.80:/opt/android-x86/android-x86-6.0-rc1/kernel/include/net/scp include/net/mptcp_v6.h 10.109.253.80:/opt/android-x86/android-x86-6.0-rc1/kernel/include/net/scp include/net/netns/mptcp.h 10.109.253.80:/opt/android-x86/android-x86-6.0-rc1/kernel/include/net/netns/++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++注意:不要在 android-x86-6.0-rc1/kernel/ 中 执行 make menuconfig直接设置 (./net/ipv4/Kconfig, ./net/mptcp/Kconfig) 中的 MPTCP参数要使用 Android 本身的 编译系统 规则,否则,会出现下面的失败 (下面不看)——> (上面不看)。++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------in IBM Server---------------------------------------------[root@localhost android-x86-6.0-rc1]# pwd/opt/android-x86/android-x86-6.0-rc1[root@localhost android-x86-6.0-rc1]# echo $JAVA_HOMEexport JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64export PATH=$JAVA_HOME/bin:$PATH. build/envsetup.shlunch android_x86_64-userdebugm -j32 iso_imgm -j1 iso_img// use this command, can find issues.--------------[root@localhost android-x86-6.0-rc1]# m -j32 iso_imgmake[2]: *** wait: No child processes。 停止。Makefile:146: recipe for target 'sub-make' failedmake[1]: *** [sub-make] Error 2make[1]: Leaving directory '/opt/android-x86/android-x86-6.0-rc1/kernel'build/core/tasks/kernel.mk:51: recipe for target 'out/target/product/x86_64/kernel' failedmake: *** [out/target/product/x86_64/kernel] Error 2make: *** 正在等待未完成的任务....target  C++: libLLVMARMCodeGen <= external/llvm/lib/Target/ARM/ARMBaseInstrInfo.cppWarning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.make: Leaving directory '/opt/android-x86/android-x86-6.0-rc1'#### make failed to build some targets (09:43 (mm:ss)) ####[root@localhost android-x86-6.0-rc1]# make clean--------------------------------------------------------------------------------------------[root@localhost kernel.tmp]# grep MPTCP `find . -name Kconfig`./net/ipv4/Kconfig:tristate "MPTCP Linked Increase"./net/mptcp/Kconfig:config MPTCP[root@localhost kernel.tmp]# gedit ./net/ipv4/Kconfig ./net/mptcp/Kconfig具体修改见:http://blog.csdn.net/ztguang/article/details/52084530scp ./net/ipv4/Kconfig 10.109.253.80:/opt/android-x86/android-x86-6.0-rc1/kernel/net/ipv4/scp ./net/mptcp/Kconfig 10.109.253.80:/opt/android-x86/android-x86-6.0-rc1/kernel/net/mptcp/--------------------------------------------------------------------------------------------[root@localhost android-x86-6.0-rc1]# m -j32 iso_imghost C++: v8_mksnapshot.x86_64 <= external/v8/src/base/atomicops_internals_x86_gcc.ccmake[2]: Leaving directory '/opt/android-x86/android-x86-6.0-rc1/out/target/product/x86_64/obj/kernel'Makefile:146: recipe for target 'sub-make' failedmake[1]: *** [sub-make] Error 2make[1]: Leaving directory '/opt/android-x86/android-x86-6.0-rc1/kernel'build/core/tasks/kernel.mk:51: recipe for target 'out/target/product/x86_64/kernel' failedmake: *** [out/target/product/x86_64/kernel] Error 2make: *** 正在等待未完成的任务....host C++: v8_mksnapshot.x86_64 <= external/v8/src/base/platform/platform-linux.ccmake: *** wait: No child processes。 停止。#### make failed to build some targets (01:15:05 (hh:mm:ss)) ####--------------------------------------------------------------------------------------------m -j1 iso_img// use this command, can show errors.--------------------------------------------------------------------------------------------------------------------------------------------------------------[root@localhost android-x86-6.0-rc1]# pwd/opt/android-x86/android-x86-6.0-rc1[root@localhost android-x86-6.0-rc1]# find kernel -name android-x86_64_defconfigkernel/arch/x86/configs/android-x86_64_defconfig------------------------------------------------------------------# gedit android-x86_64_defconfig------------------------------------------------------------------# CONFIG_TCP_CONG_ADVANCED is not set#CONFIG_TCP_CONG_CUBIC=y#CONFIG_DEFAULT_TCP_CONG="cubic"# SUPPORT MPTCPCONFIG_TCP_CONG_ADVANCED=yCONFIG_TCP_CONG_BIC=mCONFIG_TCP_CONG_CUBIC=yCONFIG_TCP_CONG_WESTWOOD=mCONFIG_TCP_CONG_HTCP=mCONFIG_TCP_CONG_HSTCP=mCONFIG_TCP_CONG_HYBLA=mCONFIG_TCP_CONG_VEGAS=mCONFIG_TCP_CONG_SCALABLE=mCONFIG_TCP_CONG_LP=mCONFIG_TCP_CONG_VENO=mCONFIG_TCP_CONG_YEAH=mCONFIG_TCP_CONG_ILLINOIS=mCONFIG_TCP_CONG_DCTCP=mCONFIG_TCP_CONG_LIA=yCONFIG_TCP_CONG_OLIA=yCONFIG_TCP_CONG_WVEGAS=yCONFIG_TCP_CONG_BALIA=yCONFIG_TCP_CONG_CDG=m# CONFIG_DEFAULT_CUBIC is not setCONFIG_DEFAULT_LIA=y# CONFIG_DEFAULT_OLIA is not set# CONFIG_DEFAULT_WVEGAS is not set# CONFIG_DEFAULT_BALIA is not set# CONFIG_DEFAULT_RENO is not setCONFIG_DEFAULT_TCP_CONG="lia"------------------------------------------------------------------[root@localhost android-x86-6.0-rc1]# pwd/opt/android-x86/android-x86-6.0-rc1[root@localhost android-x86-6.0-rc1]# scp 10.109.253.80:/opt/android-x86/android-x86-6.0-rc1/kernel/arch/x86/configs/android-x86_64_defconfig kernel/arch/x86/configs/android-x86_64_defconfigscp kernel/arch/x86/configs/android-x86_64_defconfig 10.109.253.80:/opt/android-x86/android-x86-6.0-rc1/kernel/arch/x86/configs/android-x86_64_defconfig--------------------------------------------------------------------------------------------------------------------------------------------------------------after compiled successfully, install android in VirtualBox. -->  android-x86-mptcp-1-------------------------------------------------------------------------------------------------------------------------------------------------------http://multipath-tcp.org/pmwiki.php/Users/ConfigureMPTCPdmesg | grep MPTCPsysctl -w net.mptcp.[name of the variable]=[value]net.mptcp.mptcp_enabled (default 1)net.mptcp.mptcp_checksum (default 1)net.mptcp.mptcp_syn_retries (default 3)net.ipv4.tcp_congestion_control# The available congestion controls are lia (alias Linked Increase Algorithm), olia (alias Opportunistic Linked Increase Algorithm),wVegas (alias Delay-based Congestion Control for MPTCP) and balia (alias Balanced Linked Adaptation Congestion Control Algorithm).-----------------------------Configure the path-manager:net.mptcp.mptcp_path_manager (default fullmesh)-----------------------------------------------------------adb shellcat /proc/sys/net/mptcp/mptcp_enabledcat /proc/sys/net/mptcp/mptcp_checksumcat /proc/sys/net/mptcp/mptcp_syn_retriescat /proc/sys/net/ipv4/tcp_congestion_controlcat /proc/sys/net/mptcp/mptcp_path_manager-------------------sysctl net | grep congestionnet.ipv4.tcp_allowed_congestion_control = lia renonet.ipv4.tcp_available_congestion_control = lia reno cubic olia wvegas balianet.ipv4.tcp_congestion_control = lia------------------------------------------------------------------------------to verify that Multipath TCP works through your network-----------------------------------------------------------curl http://www.multipath-tcp.org(NO) Nay, Nay, Nay, your have an old computer that does not speak MPTCP. Shame on you!(YES) Yay, you are MPTCP-capable! You can now rest in peace.-----------------------------------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Android with KGDB+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[root@localhost kernel.tmp]# pwd/opt/android-x86/android-x86-6.0-rc1/kernel.tmp[root@localhost kernel.tmp]# make menuconfig-----------------------------------------------------------kgdb options-----------------------------------------------------------CONFIG_KGDB=yCONFIG_KGDB_SERIAL_CONSOLE=yCONFIG_KGDB_LOW_LEVEL_TRAP=y   Location:    -> Kernel hacking     -> [*] KGDB: kernel debugger  --->      -> <*>   KGDB: use kgdb over the serial console       -> [*]   KGDB: Allow debugging with traps in notifiersCONFIG_MAGIC_SYSRQ=yCONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x1   Location:    -> Kernel hacking     -> -*- Magic SysRq key     -> (0x1) Enable magic SysRq key functions by default CONFIG_DEBUG_RODATA=nCONFIG_DEBUG_RODATA_TEST=n   Location:    -> Kernel hacking     -> [ ] Write protect kernel read-only data structures     -> [ ]   Testcase for the DEBUG_RODATA feature-----------------------------------------------------------then, modify /opt/android-x86/android-x86-6.0-rc1/kernel/arch/x86/configs/android-x86_64_defconfigabiding by /opt/android-x86/android-x86-6.0-rc1/kernel.tmp/.config/opt/android-x86/android-x86-6.0-rc1/kernel/arch/x86/configs/android-x86_64_defconfig (url:)-----------------------------------------------------------[root@localhost android-x86-6.0-rc1]# pwd/opt/android-x86/android-x86-6.0-rc1[root@localhost android-x86-6.0-rc1]# scp 10.109.253.80:/opt/android-x86/android-x86-6.0-rc1/kernel/arch/x86/configs/android-x86_64_defconfig kernel/arch/x86/configs/android-x86_64_defconfigscp kernel/arch/x86/configs/android-x86_64_defconfig 10.109.253.80:/opt/android-x86/android-x86-6.0-rc1/kernel/arch/x86/configs/android-x86_64_defconfig--------------[root@localhost android-x86-6.0-rc1]# pwd/opt/android-x86/android-x86-6.0-rc1[root@localhost android-x86-6.0-rc1]# echo $JAVA_HOMEexport JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64export PATH=$JAVA_HOME/bin:$PATH. build/envsetup.shlunch android_x86_64-userdebugm -j32 iso_imgm -j1 iso_img// use this command, can find issues.--------------scp 10.109.253.80:/opt/android-x86/android-x86-6.0-rc1/out/target/product/x86_64/android_x86_64.iso /opt/android-x86/tmp-iso-can-del/then, reinstall android-x86 in VirtualBox-------------------------------------------------------------------------debug----------------------------http://opensourceforu.com/2011/03/kgdb-with-virtualbox-debug-live-kernel/http://blog.csdn.net/cjxsimon/article/details/44173071------------------------------------------------------------------------------------in VirtualBoxhttps://www.virtualbox.org/manual/ch03.html#serialportshttp://www.netfairy.net/?post=242-------------------------// Configuring the virtual serial port in VirtualBoxRight-click your virtual machine instance, and go to the Settings tab. On the Port 1 tab, choose "Enable Serial Port". Select "Port Mode" to be "Host pipe". Uncheck the "Connect to existing pipe/socket" checkboxEnter a pipe file-name "/tmp/serial" in the "Port/File Path" text field-------------------------in VirtualBox-------------------------Editing the bootloader, To enable KGDB serial console support from the guest, we need to append the options, kgdboc (kgdb over console)-------------------- kgdb=ttyS0,115200 kgdboc=ttyS0,115200 kgdbwait-------------------------in Host-------------------------socat -d -d /tmp/serial pty// after that "/dev/pts/3" is printed:[root@localhost fedora23server-share]# socat -d -d /tmp/serial pty2016/09/01 08:22:23 socat[20006] N opening connection to AF=1 "/tmp/serial"2016/09/01 08:22:23 socat[20006] N successfully connected from local address AF=1 "\xEE\xEE\xEE\xEE\xEE\xEE"2016/09/01 08:22:23 socat[20006] N successfully connected via <anon>2016/09/01 08:22:23 socat[20006] N PTY is /dev/pts/32016/09/01 08:22:23 socat[20006] N starting data transfer loop with FDs [3,3] and [4,4]-------------------------in Host, in another terminal-------------------------[root@localhost kernel]# pwd/opt/android-x86/android-x86-6.0-rc1/kernel// You should also transfer the uncompressed image of the kernel running at the vm.[root@localhost kernel]# scp 10.109.253.80:/opt/android-x86/android-x86-6.0-rc1/out/target/product/x86_64/obj/kernel/vmlinux .[root@localhost kernel]# ll -h vmlinux-rwxr-xr-x. 1 root root 5.3M 8月  29 20:58 vmlinux[root@localhost kernel]# gdb vmlinux(gdb) set remotebaud 115200(gdb) target remote /dev/pts/3------------------------------------------------------------------------------------++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++下面不看+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------in IBM Server-------------------------------[root@localhost kernel]# pwd/opt/android-x86/android-x86-6.0-rc1/kernel[root@localhost kernel]# make menuconfigNetworking support->Networking options->TCP/IP networking->MPTCP protocol (MPTCP)Choose a path-manager, Networking support->Networking options->"MPTCP: advanced path-manager control"->MPTCP Full-Mesh Path-Manager->MPTCP ndiff-ports;--->Default MPTCP Path-Manager (Full mesh)enable Policy-RoutingNetworking support->Networking options->IP: advanced router->IP: policy routing (IP_MULTIPLE_TABLES)Networking support->Networking options->TCP: advanced congestion control->MPTCP Linked Increase (Lia)->"Opportunistic Linked Increase (Olia)", ->"WVEGAS CONGESTION CONTROL (Wvegas)" ->"BALIA CONGESTION CONTROL (Balia)".--->Default TCP congestion control (Lia)--------------[root@localhost android-x86-6.0-rc1]# pwd/opt/android-x86/android-x86-6.0-rc1[root@localhost android-x86-6.0-rc1]# echo $JAVA_HOMEexport JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.75-2.5.4.2.fc20.x86_64export PATH=$JAVA_HOME/bin:$PATH. build/envsetup.shlunch android_x86_64-userdebugm -j32 iso_img--------------cd kernelmake menuconfigmake oldconfigcd -m -j32 iso_img--------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++make oldconfig----------------------------------------------------------  INET: socket monitoring interface (INET_DIAG) [M/n/y/?] 105 m    UDP: socket monitoring interface (INET_UDP_DIAG) [M/n/?] 105 m    INET: allow privileged process to administratively close sockets (INET_DIAG_DESTROY) [Y/n/?] 105 y  TCP: MD5 Signature Option support (RFC2385) (TCP_MD5SIG) [N/y/?] 105 n  NetLabel subsystem support (NETLABEL) [N/y/?] 105 n  MPTCP protocol (MPTCP) [N/y/?] (NEW) name MPTCPtype 1curr.val ncurr.tri 0visible 2flags 42880108 check_stdin()aborted!Console input/output is redirected. Run 'make oldconfig' to update configuration.----------------------------------------------------------[root@localhost android-x86-6.0-rc1]# pwd/opt/android-x86/android-x86-6.0-rc1[root@localhost android-x86-6.0-rc1]# vim ./kernel/scripts/kconfig/conf.c ----------------------------------------------------------case silentoldconfig:if (sym_has_value(sym)) {printf("105 %s\n", def);return 0;}printf("\nname %s\n", sym->name);printf("type %d\n", sym->type);printf("curr.val %s\n", (const char *)sym->curr.val);printf("curr.tri %d\n", sym->curr.tri);printf("visible %d\n", sym->visible);printf("flags %d\n", sym->flags);printf("108 check_stdin()\n"); check_stdin();----------------------------------------------------------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++[root@localhost android-x86-6.0-rc1]# m -j32 iso_img----------------------------------------------------------host Java: signapk (out/host/common/obj/JAVA_LIBRARIES/signapk_intermediates/classes)target Export Resources: framework-res (out/target/common/obj/APPS/framework-res_intermediates/package-export.apk)host Prebuilt: jack (out/host/common/obj/JAVA_LIBRARIES/jack_intermediates/jack.jar)arch/x86/Makefile:133: stack-protector enabled but compiler support brokenInstall: out/host/linux-x86/bin/conscrypt_generate_constantshost SharedLib: libart-compiler (out/host/linux-x86/obj/lib/libart-compiler.so)Install: out/host/linux-x86/lib/libbacktrace.sohost SharedLib: libart_32 (out/host/linux-x86/obj32/lib/libart.so)  CHK     include/config/kernel.release  UPD     include/config/kernel.release  GEN     ./Makefile  CHK     include/generated/uapi/linux/version.h  UPD     include/generated/uapi/linux/version.h  CHK     include/generated/utsrelease.h"4.4.12Error: kernelrelease not valid - run make prepare to update it" exceeds 64 characters/opt/android-x86/android-x86-6.0-rc1/kernel/Makefile:1018: recipe for target 'include/generated/utsrelease.h' failedmake[2]: *** [include/generated/utsrelease.h] Error 1make[2]: *** 正在等待未完成的任务....Install: out/host/linux-x86/lib64/libbacktrace.somake[2]: *** wait: No child processes。 停止。Makefile:146: recipe for target 'sub-make' failedmake[1]: *** [sub-make] Error 2make[1]: Leaving directory '/opt/android-x86/android-x86-6.0-rc1/kernel'build/core/tasks/kernel.mk:51: recipe for target 'out/target/product/x86_64/kernel' failedmake: *** [out/target/product/x86_64/kernel] Error 2make: *** 正在等待未完成的任务....host SharedLib: libartd-compiler (out/host/linux-x86/obj/lib/libartd-compiler.so)host SharedLib: libartd-compiler_32 (out/host/linux-x86/obj32/lib/libartd-compiler.so)warning: string 'gsm_alphabet_default_charset' has no default translation.make: Leaving directory '/opt/android-x86/android-x86-6.0-rc1'#### make failed to build some targets (53:51 (mm:ss)) ####---------------[root@localhost android-x86-6.0-rc1]# vim kernel/scripts/setlocalversion [root@localhost android-x86-6.0-rc1]# ll kernel/include/config/auto.conf+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++brctl addbr br_a_1ifconfig br_a_1 upbrctl addbr br_a_2ifconfig br_a_2 upbrctl addbr br_a_3ifconfig br_a_3 up--------------ifconfig br_a_1 downbrctl delbr br_a_1ifconfig br_a_2 downbrctl delbr br_a_2ifconfig br_a_3 downbrctl delbr br_a_3--------------mptcp-android-1ifconfig eth0 112.26.0.1 netmask 255.255.255.0 upifconfig eth1 112.26.1.1 netmask 255.255.255.0 upifconfig eth2 112.26.2.1 netmask 255.255.255.0 upmptcp-android-2ifconfig eth0 112.26.0.2 netmask 255.255.255.0 upifconfig eth1 112.26.1.2 netmask 255.255.255.0 upifconfig eth2 112.26.2.2 netmask 255.255.255.0 up--------------mptcp-android-1nc -l 12123 < /dev/zeromptcp-android-2nc 112.26.0.1 12123 > /dev/null+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++./external/tcpdump/tests/mptcp.out./external/tcpdump/print-mptcp.c./external/tcpdump/mptcp.h./external/tcpdump/mptcp.h+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++kernel/scripts/kconfig/conf.c------------------------------[root@localhost android-x86-6.0-rc1]# m -j32 iso_img------------------------------** Restart config...*fffffff** Networking options*eeeeeeeddddddddddddbbbbbbbbbbPacket socket (PACKET) [Y/n/m/?] 105 yname PACKETtype 2curr.val ncurr.tri 2visible 2flags 108416------------------eeeeeeeddddddddddddbbbbbbbbbb  MPTCP protocol (MPTCP) [N/y/?] (NEW) name MPTCPtype 1curr.val ncurr.tri 0visible 2flags 42880108 check_stdin()aborted!------------------------------maincheck_confconfconf_symconf_askvalue------------------------------gedit kernel/scripts/kconfig/zconf.y kernel/scripts/kconfig/menu.c kernel/scripts/kconfig/gconf.c kernel/scripts/kconfig/symbol.c kernel/scripts/kconfig/zconf.tab.c_shipped kernel/scripts/kconfig/confdata.cgedit kernel/scripts/kconfig/symbol.c kernel/scripts/kconfig/menu.c kernel/scripts/kconfig/confdata.csym->flagsscp kernel/scripts/kconfig/symbol.c kernel/scripts/kconfig/menu.c kernel/scripts/kconfig/confdata.c 10.109.253.80:/opt/android-x86/android-x86-6.0-rc1/kernel/scripts/kconfig/------------------------------++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++上面不看+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



0 0
原创粉丝点击