20200116_jeffrey - silenceuncrio/diary GitHub Wiki
0835
review
0930
ๅฏไปฅ็ผ็พๅฐฑ็ฎ่ฆบๅพ่ชๅทฑ gre keepalive ๅทฒ็ถๅๅฎไบ
้ไธๅคฉ้ๆฏไฟฎไบไธๅฐ bug
้้ฝๆญธๅๆผ ๆดๅๆธฌ่ฉฆ
ๆดๅๆธฌ่ฉฆ็็ๅพ้่ฆ
0945
็คไธไธๅพ็บ็ๅทฅไฝ้ ็ฎ
M300
- ็กๅทฅไฝ้ ็ฎ
M330
- P1 - GRE Keepalive
- P2 - Web UI; GPS Track drawing(Server)
M350
- GRE
- Web UI
- Firmware Upgrade
- GRE keepalive
M360
- ็กๅทฅไฝ้ ็ฎ
ๅฏไปฅ็ผ็พๆ็บๆๆฐ็ๆฏ M350 - Firmware Upgrade
้็ฝๆฏๅฐ dual image
ๆไบ dual image ๆๅ็ firmware upgrade ๆ่ฝๆ firmware image ๅฏซๅฐไธๅ้ active ็ partition ่ฃก
่ dual image ็่ฆๅๆถๅๅฐ flash ็ layout
ๆ้่ฆ่ท่ฒ ่ฒฌ uboot ็ๅไป co-work
ๅ ๅปบ็ซๅฅฝๅทฅไฝ็ฐๅขๅง
ๅ ๅปบ็ซ่ฝ build m350 ็ docker image
1100
checkout m350 source code
1115
็ฎๅๆดๅ ่ๆฌๆฉ ไธ็ฅ้็ผ็ไป้บผๅ้ก
้้ ssh ไธ็ป้ธๅฐฑ้กฏ็คบ
Welcome to Ubuntu 16.04.4 LTS (GNU/Linux 4.15.0-74-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
199 packages can be updated.
0 updates are security updates.
New release '18.04.3 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
Last login: Thu Jan 16 10:17:42 2020 from 192.168.217.1
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ npm update check failed โ
โ Try running with sudo or get access โ
โ to the local update config store via โ
โ sudo chown -R $USER:$(id -gn $USER) /home/jeffrey/.config โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
zsh: locking failed for /home/jeffrey/.zsh_history: read-only file system: reading anyway
โ ~
้ฒ m330 ๅพไนไธ่ฝ git pull
tmux ๅท่กไบไนๆฒๆๅๆ
้ธๆๆ VMware ้ๆฉๅ้ๆฉ
็ผ็พ้ไธ่ตทไพ...
1145
ๅ่ ไฟฎๅพฉ Linux ้ๆฉๅบ็พๆชๆก็ณป็ตฑๆไธไธ่ดๆง (UNEXPECTED INCONSISTENCY) ็้ฏ่ชคๅ้ก
ๅท่กไบ fsck -y /dev/sda1
็ญๅพ ไฟฎๅพฉๅฎๆๅพๅๅท่ก reboot
็ถๅพๅฐฑๆ ubuntu ๅธถ่ตทไพไบ
ๅๆฌก้้ ssh ็ปๅ ฅ
login as: jeffrey
[email protected]'s password:
Welcome to Ubuntu 16.04.4 LTS (GNU/Linux 4.15.0-74-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
199 packages can be updated.
0 updates are security updates.
New release '18.04.3 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
Last login: Thu Jan 16 10:17:42 2020 from 192.168.217.1
โ ~
ๆฒ็ๅฐๅๅ็้ฏ่ชค่จๆฏ
zsh: locking failed for /home/jeffrey/.zsh_history: read-only file system: reading anyway
tmux ๅฏไปฅ็จ
้ฒ m330 ไนๅฏไปฅ git pull ไบ
1300
build m350 source code
make ็ๆๅไธ่ฆๅๅ -j3 ไพๅ ้
ๆไบ dependency ็ๅ้กๆๅบ็พ
ไนไนไธ make ๅฐฑๅฅฝไบ
1345
make automake ๆๅบไบ้ฏ
ๅๅ ไธๆ
ๅ้ๆฐๅพ build docker image ๅบ็ผ
1420
ๅๅๅป DQA ้ฃ้่ชชๆไบไธไธๆๆฐ็ GRE ่ฆๆ้บผไพๆธฌ่ฉฆ
็ฎๅ m350 ้ฒๅ ฅ make ็ฐ็ฏ - make V=s
ๅๅ็ๅฐ jessy ็ wiki
jessy ๅทฒ็ถๆ dual image ้ฝ layout ๅฅฝไบ
้ฃๆ็ firmware upgrade ้ฃๅบฆ่ณๅฐ้ไฝไธๅไปฅไธ
1505
็ฎๅ m350 ็ make V=s ้ๅจ้ฒ่กไธญ - ไธญ้ๆๅไธไพ็บไบ security ๅไบไธๆฌก็้ธ้ ้ธๆ
ไฝฟ็จ make ็ๅไปๆ่ฉฒไธ็จๅไธไพ
1540
make ๅคฑๆไบ
Applying ./patches/900-terminfo.patch using plaintext:
patching file misc/terminfo.src
Hunk #1 succeeded at 3947 (offset 240 lines).
touch /home/user/build_dir/host/ncurses-5.9/.preparedf72101e21d0ce40bb2f90d3b05fb7939
(cd /home/user/build_dir/host/ncurses-5.9/; if [ -x configure ]; then cp -fpR /home/user/scripts/config.{guess,sub} /home/user/build_dir/host/ncurses-5.9// && bash ./configure CC="gcc" CFLAGS="-O2 -I/home/user/
staging_dir/host/include -I/home/user/staging_dir/host/usr/include" CPPFLAGS="-I/home/user/staging_dir/host/include -I/home/user/staging_dir/host/usr/include" LDFLAGS="-L/home/user/staging_dir/host/lib -L/home/u
ser/staging_dir/host/usr/lib" SHELL="/usr/bin/env bash" --target=x86_64-linux-gnu --host=x86_64-linux-gnu --build=x86_64-linux-gnu --program-prefix="" --program-suffix="" --prefix=/home/user/staging_dir/host --e
xec-prefix=/home/user/staging_dir/host --sysconfdir=/home/user/staging_dir/host/etc --localstatedir=/home/user/staging_dir/host/var --sbindir=/home/user/staging_dir/host/bin --without-cxx --without-cxx-binding -
-without-ada --without-debug --without-manpages --without-profile --without-tests --without-curses-h ; fi )
checking for egrep... grep -E
Configuring NCURSES 5.9 ABI 5 (Thu Jan 16 07:26:48 UTC 2020)
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
Configuring for linux-gnu
checking for prefix... /home/user/staging_dir/host
checking for x86_64-linux-gnu-gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking version of gcc... 5.4.0
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking whether gcc understands -c and -o together... yes
checking for POSIXized ISC... no
checking for gcc option to accept ANSI C... -DCC_HAS_PROTOS
checking for ldconfig... /home/user/staging_dir/host/bin/ldconfig
checking if you want to ensure bool is consistent with C++... no
checking if you want to build C++ binding and demo... no
checking if you want to build with Ada95... no
checking if you want to install manpages... no
checking if you want to build programs such as tic... yes
checking if you want to build test-programs... no
checking if you wish to install curses.h... no
checking for mawk... mawk
checking for egrep... (cached) grep -E
checking for a BSD compatible install... /usr/bin/install -c
checking for tdlint... no
checking for lint... no
checking for alint... no
checking for splint... no
checking for lclint... no
checking whether ln -s works... yes
checking if ln -s -f options work... yes
checking for long file names... yes
checking if you want to use pkg-config... yes
checking for x86_64-linux-gnu-pkg-config... /home/user/staging_dir/host/bin/pkg-config [1188/1441]
checking if we should install .pc files for /home/user/staging_dir/host/bin/pkg-config... no
checking if we should assume mixed-case filenames... auto
checking if filesystem supports mixed-case filenames... yes
checking whether make sets ${MAKE}... yes
checking for exctags... no
checking for ctags... ctags
checking for exetags... no
checking for etags... etags
checking for ctags... yes
checking for etags... yes
checking for makeflags variable... given option "-${MAKEFLAGS}", no match ".-kw"
given option "${MFLAGS}", no match ".-kw"
checking for x86_64-linux-gnu-ranlib... x86_64-linux-gnu-ranlib
checking for x86_64-linux-gnu-ld... x86_64-linux-gnu-ld
checking for x86_64-linux-gnu-ar... x86_64-linux-gnu-ar
checking for x86_64-linux-gnu-ar... (cached) x86_64-linux-gnu-ar
checking for options to update archives... -curv
checking if you have specified an install-prefix...
checking if libtool -version-number should be used... yes
checking if you want to build libraries with libtool... no
checking if you want to build shared libraries... no
checking if you want to build static libraries... yes
checking if you want to build debug libraries... no
checking if you want to build profiling libraries... no
checking for specified models... normal
checking for default model... normal
checking if you want to build a separate terminfo library... no
checking if you want to build a separate tic library... no
checking if you want to link with the GPM mouse library... maybe
checking for gpm.h... no
checking for default loader flags...
checking for an rpath option... -Wl,-rpath,
checking if release/abi version should be used for shared libs... auto
checking which gcc option to use... -fPIC
checking if you wish to install ncurses overwriting curses... no
checking if external terminfo-database is used... yes
checking which terminfo source-file will be installed... ${top_srcdir}/misc/terminfo.src
checking whether to use hashed database instead of directory/tree... no
checking for list of fallback descriptions...
checking if you want modern xterm or antique... xterm-new
checking for list of terminfo directories... /home/user/staging_dir/host/share/terminfo
checking for default terminfo directory... /home/user/staging_dir/host/share/terminfo
checking if big-core option selected... yes
checking if big-strings option selected... yes
checking if you want termcap-fallback support... no
checking if ~/.terminfo is wanted... yes
checking if you want to use restricted environment when running as root... yes
checking for remove... yes
checking for unlink... yes
checking if link/symlink functions work... link symlink [1137/1441]
checking if tic should use symbolic links... no
checking if tic should use hard links... yes
checking if you want broken-linker support code... no
checking if tputs should process BSD-style prefix padding... no
checking if we must define _GNU_SOURCE... yes
checking if SIGWINCH is defined... yes
checking for nl_langinfo and CODESET... yes
checking if you want wide-character code... no
checking whether to enable _LP64 definition in curses.h... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for fseeko... yes
checking whether to use struct dirent64... no
checking if you want tparm not to use X/Open fixed-parameter list... yes
checking for type of bool... auto
checking for alternate terminal capabilities file... Caps
checking for type of chtype... auto
checking for type of ospeed... short
checking for type of mmask_t... auto
checking for size CCHARW_MAX... 5
checking if RCS identifiers should be compiled-in... no
checking format of man-pages... ./configure: line 9621: echo: write error: Read-only file system
gzip
./configure: line 9628: echo: write error: Read-only file system
checking for manpage renaming... ./configure: line 9666: ./edit_man.sed: Read-only file system
./configure: line 9670: echo: write error: Read-only file system
/home/user/build_dir/host/ncurses-5.9/man/man_db.renames
./configure: line 9673: echo: write error: Read-only file system
checking if manpage aliases will be installed... ./configure: line 9684: echo: write error: Read-only file system
yes
./configure: line 9698: echo: write error: Read-only file system
checking if manpage symlinks should be used... ./configure: line 9717: echo: write error: Read-only file system
yes
./configure: line 9721: echo: write error: Read-only file system
checking for manpage tbl... ./configure: line 9732: echo: write error: Read-only file system
no
./configure: line 9774: ./edit_man.sh: Read-only file system
./configure: line 9850: ./edit_man.sh: Read-only file system
...
./configure: line 20301: ./config.status: Read-only file system
grep: conftest.vals: No such file or directory
./configure: line 20324: ./config.status: Read-only file system
./configure: line 20326: ./config.status: Read-only file system
./configure: line 20380: ./config.status: Read-only file system
./configure: line 20992: ./config.status: Read-only file system
chmod: cannot access './config.status': No such file or directory
bash: ./config.status: No such file or directory
./configure: line 21011: config.log: Read-only file system
./configure: line 23: conftest.log: Read-only file system
rm: cannot remove 'confdefs.h': Read-only file system
rm: cannot remove 'conf78823.src': Read-only file system
Makefile:193: recipe for target '/home/user/build_dir/host/ncurses-5.9/.configured' failed
make[3]: *** [/home/user/build_dir/host/ncurses-5.9/.configured] Error 1
make[3]: Leaving directory '/home/user/package/libs/ncurses'
package/Makefile:191: recipe for target 'package/libs/ncurses/host/compile' failed
make[2]: *** [package/libs/ncurses/host/compile] Error 2
make[2]: Leaving directory '/home/user'
package/Makefile:188: recipe for target '/home/user/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/stamp/.package_compile' failed
make[1]: *** [/home/user/staging_dir/target-arm_cortex-a7_uClibc-1.0.14_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/user'
/home/user/include/toplevel.mk:186: recipe for target 'world' failed
make: *** [world] Error 2
user@f6cd04351cf7:~$
ๆ่ฆบๆ VMware ๅฟซ่ฆๆไบ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ npm update check failed โ
โ Try running with sudo or get access โ
โ to the local update config store via โ
โ sudo chown -R $USER:$(id -gn $USER) /home/jeffrey/.config โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
zsh: locking failed for /home/jeffrey/.zsh_history: read-only file system: reading anyway
ๅ ๅฐ VMware ้ๆฉ
ๆ่ฆบๅฎน้ไธๅค ็จไบ
ๅ ่ฉฆ่ๆด็ไธไธๅฅฝไบ
็ไธ่กๅ่ฉฆ่ฉฆ Expand disk capacity
VMware ไธ้ๆฉๅๅบ็พๅๅ็็ซ้ข
/dev/sda1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
ๅๅบฆๅฉ็จ fsck -y /dev/sda1 ไพไฟฎๅพฉ
ไพๆด็ไธไธๅฅฝไบ
ๆๆฒ็จ็ๅฐๆกๅ ็งป้ค
ๅค็ญๅไธไบ็ฉบ้
็ฎๅ็ไฝฟ็จ้
โ ~ df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 978316 0 978316 0% /dev
tmpfs 201760 6820 194940 4% /run
/dev/sda1 121659492 89781304 26094680 78% /
tmpfs 1008788 212 1008576 1% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 1008788 0 1008788 0% /sys/fs/cgroup
tmpfs 201760 44 201716 1% /run/user/1000
็ไธไธ /home/jeffrey ไฝไบๅคๅฐ
โ ~ du -shc ~
61G /home/jeffrey
61G total
โ ~
ๆ้่ฆ็ๆฏๅๅฅ็ๅคงๅฐๆนไพฟ่ชๅทฑๆฑบๅฎ่ฆๅชๅชไธๅ
โ / du -shc ~/*
132M /home/jeffrey/01_si
4.0K /home/jeffrey/300.sh
4.0K /home/jeffrey/330.sh
4.0K /home/jeffrey/350.sh
4.0K /home/jeffrey/360.sh
9.2G /home/jeffrey/52XXZ
176K /home/jeffrey/build-m350
28K /home/jeffrey/composetest
4.0K /home/jeffrey/Desktop
4.0K /home/jeffrey/Documents
4.0K /home/jeffrey/Downloads
12K /home/jeffrey/examples.desktop
21G /home/jeffrey/M300
12G /home/jeffrey/m330
8.2G /home/jeffrey/m350
9.9G /home/jeffrey/M360P
4.0K /home/jeffrey/Music
1.2M /home/jeffrey/my_awesome_project
54M /home/jeffrey/packages
4.0K /home/jeffrey/Pictures
4.0K /home/jeffrey/Public
4.0K /home/jeffrey/Templates
528K /home/jeffrey/test.txt
4.0K /home/jeffrey/tmp
4.0K /home/jeffrey/uboot-360.sh
99M /home/jeffrey/uboot-m360
89M /home/jeffrey/uboot-m360.rar
4.0K /home/jeffrey/Videos
60G total
โ /
ๅช็ G ็ญ็ด็่ฉฑ
โ / du -shc ~/*
9.2G /home/jeffrey/52XXZ
21G /home/jeffrey/M300
12G /home/jeffrey/m330
8.2G /home/jeffrey/m350
9.9G /home/jeffrey/M360P
...
60G total
โ /
ๅฏไธๅฏไปฅ่็็ๅชๆ /home/jeffrey/52XXZ
โ ~ rm -rf 52XXZ
โ ~ df
Filesystem 1K-blocks Used Available Use% Mounted on
udev 978316 0 978316 0% /dev
tmpfs 201760 11976 189784 6% /run
/dev/sda1 121659492 80214292 35661692 70% /
tmpfs 1008788 212 1008576 1% /dev/shm
tmpfs 5120 4 5116 1% /run/lock
tmpfs 1008788 0 1008788 0% /sys/fs/cgroup
tmpfs 201760 44 201716 1% /run/user/1000
โ ~
/dev/sda1 ็ Use ๅพ 78% ้ๅฐไบ 70%
็ไธไธๆดๅๆ น็ฎ้ๅฅฝไบ
1725
โ ~ du -shc /*
14M /bin
1.7G /boot
4.0K /cdrom
212K /dev
...
13M /etc
52G /home
0 /initrd.img
0 /initrd.img.old
5.5G /lib
4.0K /lib64
...
80K /lost+found
4.0K /media
4.0K /mnt
4.0K /opt
...
0 /proc
...
4.0K /root
...
13M /run
13M /sbin
8.0K /snap
4.0K /srv
...
0 /sys
...
40K /tmp
7.2G /usr
...
0 /vmlinuz
0 /vmlinuz.old
67G total
โ ~
ๅ ถไปๅฐๆนๅฏฆๅจ็ไธๅบๆ็้บผๅฏไปฅๅช้ค็