
ToolChain
hushui
Coding Since 1998
展开
-
patch/lib without LD_LIBBRARY_PATH
Question:Buildroot does not allowLD_LIBBRARY_PATHBuild/make user does not have root provilege.Buildroot needs some extra so/lib for host side tool/QT buildSolution[lake@localhost rk3399_linux_release_v2.5.1_20210301]$ ldd /data/sdb/lake/sou..原创 2021-07-21 17:38:47 · 147 阅读 · 0 评论 -
readelf instead of file for elf Machine/arch check
./host/bin/aarch64-buildroot-linux-gnu-readelf -h build/qt5declarative-5.12.2/bin/qmlsceneELF Header: Magic: 7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00 Class: ELF64 Data: 2's co..原创 2021-07-20 09:40:26 · 165 阅读 · 0 评论 -
readelf/cross tool without ldd
arm-none-linux-gnueabi-readelf -a $elffilename | grep "Shared library:"原创 2021-06-18 13:53:45 · 106 阅读 · 0 评论 -
RK3399/Linux kernel manual build(gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu) for FIrefly
1. RK3399 CPU arm642. Firefly kernel git:https://github.com/FireflyTeam/kernelKernel confighttps://github.com/FireflyTeam/kernel/blob/rk3399/firefly/arch/arm64/configs/firefly_linux_defconfi...原创 2020-03-29 14:48:51 · 1564 阅读 · 0 评论 -
SSH Tennel for Adb/GDB debug NDK
## Step 1OutSideHost/Linux build server/Remote 192.168.1.1root@OutSideHost:/localrepo/root/rm/jci/rm/engine$ netstat -an --tcp |grep 16000Make sure 16000/TCP is not used## Step 2 SSH ...原创 2019-06-14 16:25:46 · 561 阅读 · 0 评论 -
Android AOSP make target
Refer tohttps://elinux.org/Android_Build_SystemRefer tohttps://android.googlesource.com/platform/build/+/master/core/MakefileMake targetsHere is a list of different make targets you can use to...转载 2019-06-11 14:11:54 · 484 阅读 · 0 评论 -
MinGW/VS2019 VSCode setup. https://github.com/lakehu/hello.git
launch.json { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwl...原创 2019-06-18 10:16:49 · 3933 阅读 · 1 评论 -
NDK r19 to build standalone app/HelloWorld on Android
1. Standalone toolchain from NDK r19/2019Google/https://developer.android.com/ndk/guides/other_build_systemsUsing the NDK with other build systemsNote: The content described in this document requi...原创 2019-06-27 14:05:30 · 668 阅读 · 0 评论 -
Build old CVS/1.11.23/2008 with new glibc/GCC (newer 5.4.0)
sed -i 's/getline /get_line /' lib/getline.{c,h}Build old CVS/1.11.23/2008 with new glibc/GCC (newer 5.4.0)###getline.h:15:3: error: conflicting types for 'getline'> /usr/i...原创 2019-07-12 11:33:21 · 158 阅读 · 0 评论 -
Rockchip Linux SDK summary
http://opensource.rock-chips.com/wiki_Main_Pagehttp://opensource.rock-chips.com/wiki_DownloadDownloadWe provide prebuilt for all the board we support.RK3399: https://eyun.baidu.com/s/3qZM8TBm...原创 2019-07-31 10:27:32 · 1821 阅读 · 0 评论 -
qemu-system-aarch64/cortex-a53/Linux
1.LTS kernelgit clone -bv4.19--depth 1https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git2. Build withaarch64-linux-gnu-gcc/Linaro/GCC7.2.1/2017lake@localhost:...原创 2019-07-31 12:04:40 · 2839 阅读 · 0 评论 -
Guide to predefined macros in C++ compilers (gcc, clang, msvc etc.)
https://blog.kowalczyk.info/article/j/guide-to-predefined-macros-in-c-compilers-gcc-clang-msvc-etc..htmlSoftware • About MeHome/ Guide to predefined macros in C++ compilers (gcc, clang, msvc ...转载 2019-07-23 10:38:35 · 224 阅读 · 0 评论 -
Rockchip Linux yocto/RK3288.RK3399
Refer https://github.com/rockchip-linux/manifestsNoteOnly old version of repo support "--no-clone-bundle"# default Yocto/Pyro release for Rockchiprepo init --repo-url=https://github.com/roc...原创 2019-07-28 08:55:43 · 1766 阅读 · 0 评论 -
LKM-HelloWorld
# notes1. /home/lake/lfs/linux-stable has already built an ARM kernel2. Use ARM toolchainlake@lake-Latitude-5491:~$ arm-none-linux-gnueabi-gcc -vgcc version 4.6.4 (crosstool-NG hg+default-2685df...原创 2019-03-22 14:41:13 · 323 阅读 · 0 评论 -
NFS root mount for embedded system (NFSv2/v3/4) RHEL/Ubuntu
Example on HOST side/etc/exports#/home/lake *(rw,subtree_check,no_root_squash,sync,insecure)#/home/lake/nfs-boot-x86 *(rw,subtree_check,no_root_squash,sync,insecure)#/home/lake/nfs-boot-arm *(r...原创 2019-03-20 10:55:24 · 730 阅读 · 0 评论 -
ARM926的Linux工具链的制作(续 : 基于uclibc)
ARM926的Linux工具链的制作(续 : 基于uclibc) 本次制作与前一篇类似,出来用uClibc代替了Glibc 下载的代码目录 root: /home/lake/arm-uclibc-linux目标目录 dir: /home/lake/arm-uclibc-linux/uclibc-tools 1. 准备工作: 下载原创 2009-06-06 13:35:00 · 3064 阅读 · 0 评论 -
RHEL7.2-x86_64bit wxWidgets-2.8.12 unicode/GTK build codeblocks-12.11release8629
RHEL7.2-x86_64bitwxWidgets-2.8.12 unicode/GTK build codeblocks-12.11release8629 [root@localhost Packages]# rpm -ivh gtk2-devel-2.24.28-8.el7.x86_64.rpm atk-devel-2.14.0-1.el7.x86_64.rpm gdk-...原创 2018-04-04 12:37:27 · 839 阅读 · 0 评论 -
uEnv.txt/fat32 sample for RAM disk run initram ROOT with uImage
By default Uboot/tf boot in ARM/Linuxmmcroot=/dev/mmcblk0p2 rwWithout modification of Uboot, change its setting by uEnv.txtExamplemmcroot="/dev/ram0 rdinit=/linuxrc"dispmode=mmcargs=setenv bootargs ...原创 2018-04-23 15:35:52 · 341 阅读 · 0 评论 -
Default macros of GCC/Debug __func__ etc
X86/GCC/Linux## on x86-64bit hostgcc -posix -E -dM -< /dev/null#ifdefined(__x86_64__)||defined(_M_X64)/*x8664-bit-----------------------------------------------*/#elif...原创 2018-04-24 13:34:06 · 201 阅读 · 0 评论 -
GDB/ARM/Serial Port /Linux app on console
Normally GDBserver is listening on ARM/Linux TCP server for target while Host/Windows or Linux/X86 will run gdb client through TCP. Note, you must use the same GDB versions on both sides!When there is...原创 2018-05-06 15:59:36 · 180 阅读 · 0 评论 -
ubuntu系统的最小化系统包 ubuntu-base for ARM/Intel/PPC etc
Official Link https://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/dists/bionic/Mirrorhttp://cdimage.ubuntu.com/ubuntu-base/releases/18.04/release/ Download ToolFWD https://blog.youkuaiyun.com/su...原创 2018-12-29 09:51:09 · 4513 阅读 · 0 评论 -
get GCC build command line through `pkg-config --cflags --libs xxxxx`
Example/Test in Ubuntu18$ pkg-config --cflags --libs opencv-I/usr/include/opencv -lopencv_shape -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_aruco -lopencv_bgsegm -lopencv_bioin...原创 2019-02-21 09:41:01 · 331 阅读 · 0 评论 -
Linux from scratch git
Bootloader git clone git://git.denx.de/u-boot.gitkernelgit clone https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitFile System git clone git://busybox.net/busy...原创 2019-03-03 11:48:09 · 257 阅读 · 0 评论 -
Uboot/Exynos4412 Bare programming 裸机开发-loadb/dnw
U-Boot 2010.12-00000-g14efcbd (Mar 02 2019 - 13:54:51) for TINY4412CPU: S5PC220 [Samsung SOC on SMP Platform Base on ARM CortexA9] APLL = 1500MHz, MPLL = 800MHzBoard: TINY4412DRAM: ...原创 2019-03-02 21:45:41 · 569 阅读 · 0 评论 -
Exynos4412 Bare programming 裸机开发-硬件接口总结 --- TBC
0.0 LED0.1 Tiny4412 @GPX4_0/GPX4_1/GPX4_2/GPX4_3 with LED on FriendlyARM/Tiny4412-2015060.2 FS/FS4412 Huaqing@GPX2_7/GPX1_0/GPX3_4/GPX3_5 with LED on Huaqing/FS44121. Debug UART1.1 Tiny44...原创 2019-03-04 17:38:19 · 571 阅读 · 0 评论 -
Keil C51 default macro/printf
Keil/C51#ifdef KEIL /* KEIL compiler */#ifdef __C51__ /* C51 Compiler */C lib/Keil/C51 printf format string!!unsigned short , %d, %uunsigned char , %bd,...原创 2019-03-15 09:01:59 · 488 阅读 · 0 评论 -
ARM926的Linux工具链的制作和测试
ARM926的Linux工具链的制作(续 : 基于uclibc)本次制作与前一篇类似,出来用uClibc代替了Glibc下载的代码目录 root: /home/lake/arm-uclibc-linux目标目录 dir: /home/lake/arm-uclibc-linux/uclibc-tools1. 准备工作:下载 Binutil2.17/Gcc3.4.6/uClibc0.9原创 2009-05-27 21:46:00 · 2445 阅读 · 2 评论