翻舊帳

2022年12月3日 星期六

養兒方知父母恩 -- 交叉點

週六早上帶貓仔去四維做運動.
投完籃熱完身, 聽說她今年運動會有參加60公尺複賽, 我提議我們兩個從籃球場跑到另一頭的溜滑梯, 練習一下.

"三, 二, 一, GO!"
貓仔衝了出去, 我抱著兩顆籃球跟在後頭, 原本想說不要太認真, 沒想到有慢慢拉開的趨勢.
我稍微愣了一下, 不確定發生甚麼事. 想試試能不能追上她, 於是暗自加速...
耶? 居然怎麼追都還是保持著微妙的距離?!

小學四年級下學期, 小孩已經跑得跟我一樣快了.
一邊往上, 一邊往下, 歲月不饒人啊!



晚上帶她去極限運動場玩滑板.
她到設施區玩她的技術版, 我則在一旁的平地玩我的長板.
一轉眼, 不見人影, 我仔細一找才發現, 這小妞偷偷跑到U型台扶著欄杆在那兒練豚跳.

之前我好說歹說, 她總是說不要練豚跳.
結果今晚看了其他小孩滿場飛, 居然想要偷練了.

再過不久, 大概同學朋友的重量就要比爹娘大了吧?

2022年10月4日 星期二

[Yocto] [marking as unpacked only, configuration required on target.]

手上專案用到 Yocto 當作 Framework, 在新增一個元件 ksmbd-tools 的時候, 遇到 libglib-2.0 無法正常 install rootfs 的問題. log 如下:

WARNING: core-image-1.0-r0 do_rootfs: libglib-2.0-0.postinst returned 126, marking as unpacked only, configuration required on target.
ERROR: core-image-1.0-r0 do_rootfs: Postinstall scriptlets of ['libglib-2'] have failed. If the intention is to defer them to first boot, then please place them into pkg_postinst_ontarget_${PN} (). Deferring to first boot via 'exit 1' is no longer supported.
Details of the failure are in /home/lily/build/tmp/work/k-distro-linux-musl/core-image/1.0-r0/temp/log.do_rootfs.
ERROR: Logfile of failure stored in: /home/lily/build/tmp/work/k-distro-linux-musl/core-image/1.0-r0/temp/log.do_rootfs.27578

一開始完全沒有頭緒, Yocto 給出的建議有跟沒有一樣.
Google 所有關鍵字, 找到的文章, 要嘛沒有人回應, 要嘛回應的作法跟我遇到的問題無關.
最後只好硬著頭皮看 log: "/home/lily/build/tmp/work/k-distro-linux-musl/core-image/1.0-r0/temp/log.do_rootfs"

Log 裡面搜尋 glib, 看到如下訊息:

/home/lily/build/tmp/work/k-distro-linux-musl/core-image/1.0-r0/rootfs//var/lib/opkg/info/libglib-2.0-0.postinst: line 4: /home/lily/build/tmp/work/k-distro-linux-musl/core-image/1.0-r0/intercept_scripts-d488f44e3055645f044198b3d91612186d1ffb5bb926320b07b99ff8c208a402/postinst_intercept: Permission denied

很好, 至少是個我能解決的問題.

搜尋了一輪, 發現這是個 script, 而且是從 Yocto 標準 script pool 複製過來的. 位置如下:
/scripts/postinst-intercepts/postinst_intercept

把這個檔案用 chmod 改成可執行: chmod 777 postinst-intercepts/postinst_intercept
然後 commit/push, 從此解掉這個問題.

2022年9月14日 星期三

Windows 更新後無法存取網路芳鄰

這個月初某個 Windows update 過後, 我突然無法登入公司系統.
"Invalid date parameter", 甚麼鬼?

聯繫 MIS, 他說這個錯誤是因為我的電腦沒辦法用 Samba 連上公司的 NAS.
我在網路上搜尋好幾個解法, 包括打開 service, 寫入 regedit, 都沒用!!

束手無策的我, 終於在今天, 因為無法連上 build server的 samba, 決定一了百了重灌 windows!
沒想到, 連 MIS 提供的 Install USB 也沒辦法正常執行...
我索性打開控制台->程式和功能, 想移除最近安裝的 Update, 卻發現找不到那個 Update. 這? 我還有甚麼招數?

就在這個moment. 我瞄到一旁"開啟或關閉Windows功能".
靈光一閃. "不會吧?"
正所謂山重水複疑無路, 柳暗花明又一村.
它媽的是誰把我的 "SMB1.0/CIFS" 全部移除了??!!!!

把這個元件相關的全部打勾, 重開機讓他重新安裝啟動, 所有功能就正常了.