Make openWRT出現底下錯誤,無法下載util-linux-2.24.1.tar.xz
/home/victor/Workspace/openwrt-sdk/scripts/download.pl "/home/victor/Workspace/openwrt-sdk/dl" "util-linux-2.24.1.tar.xz" "88d46ae23ca599ac5af9cf96b531590f" "@KERNEL/linux/utils/util-linux/v2.24"
--2017-11-22 17:03:38-- ftp://ftp.all.kernel.org/pub/linux/utils/util-linux/v2.24/util-linux-2.24.1.tar.xz
=> '-'
Resolving ftp.all.kernel.org (ftp.all.kernel.org)... failed: Name or service not known.
wget: unable to resolve host address 'ftp.all.kernel.org'
Download failed.
因下載位置已改變,修改download.pl描述的下載路徑,
由
push @mirrors, "http://ftp.all.kernel.org/pub/$dir";
改為
push @mirrors, "http://www.kernel.org/pub/$dir";
2017年11月22日 星期三
2017年11月7日 星期二
2017年7月24日 星期一
WinCE Eboot Boot-up Sequence
- F:\WINCE500\PLATFORM\COMMON\SRC\ARM\INTEL\PXA27X\STARTUP\startup.s
StartUp[Start] -> PreInit -> Put CPU in SVC mode and disable IRQ, FIQ ->
Disable MMU, caches, write-buffer and flush -> RCSR_HARD_RESET(2.) ->
RCSR_GPIO_RESET(3.) -> Continue_StartUp(4.)
- F:\WINCE500\PLATFORM\MAINSTONEII\SRC\BOOTLOADER\EBOOT\startup.s
OALStartUp -> Init_HexLEDs -> Copy the bootloader image from flash to RAM ->
jump to the RAM image -> Enable the MMU -> Jump to main.c(5.)
- F:\WINCE500\PLATFORM\COMMON\SRC\ARM\INTEL\PXA27X\STARTUP\startup.s
RCSR_GPIO_RESET -> xlli_mem_init -> Continue_StartUp(4.)
- F:\WINCE500\PLATFORM\COMMON\SRC\ARM\INTEL\PXA27X\STARTUP\startup.s
Continue_StartUp -> xlli_intr_init(15.) -> EnableClks -> xlli_mem_Tmax(15.) ->
xlli_mem_restart(15.) -> OALXScaleSetFrequencies(16.)->
xlli_mem_Topt(15.) -> xlli_mem_restart(15.) -> xlli_ost_init(15.) ->
xlli_pwrmgr_init(15.) -> xlli_IMpwr_init(15.) -> OALStartUp(2.)
- F:\WINCE500\PLATFORM\MAINSTONEII\SRC\BOOTLOADER\EBOOT\main.c
main -> BootloaderMain(6.)
- F:\WINCE500\PLATFORM\COMMON\SRC\COMMON\BOOT\BLCOMMON\blcommon.c
BootloaderMain -> KernelRelocate -> OEMDebugInit(7.) -> OEMPlatformInit(9.) ->
OEMPreDownload(10.) -> BL_DOWNLOAD(11.) -> BL_JUMP(14.)
- F:\WINCE500\PLATFORM\MAINSTONEII\SRC\BOOTLOADER\EBOOT\main.c
OEMDebugInit -> FlashInit -> InitDebugSerial(8.)
- F:\WINCE500\PLATFORM\MAINSTONEII\SRC\COMMON\DBGSERIAL\dbgserial.c
InitDebugSerial -> Return
- F:\WINCE500\PLATFORM\MAINSTONEII\SRC\BOOTLOADER\EBOOT\main.c
OEMPlatformInit -> Create menu -> InitSpecifiedEthDevice(Download image) -> Return
- F:\WINCE500\PLATFORM\MAINSTONEII\SRC\BOOTLOADER\EBOOT\main.c
OEMPreDownload -> Return
- F:\WINCE500\PLATFORM\COMMON\SRC\COMMON\BOOT\BLCOMMON\blcommon.c
DownloadImage(BL_DOWNLOAD) -> OEMReadData(12.)
- F:\WINCE500\PLATFORM\MAINSTONEII\SRC\BOOTLOADER\EBOOT\utils.c
OEMReadData -> EbootEtherReadData(13.)
- F:\WINCE500\PUBLIC\COMMON\OAK\DRIVERS\ETHDBG\EBOOT\ebsimp.c
EbootEtherReadData -> OEMLaunch(14.)
- F:\WINCE500\PLATFORM\MAINSTONEII\SRC\BOOTLOADER\EBOOT\main.c
OEMLaunch[End]
- F:\WINCE500\PUBLIC\COMMON\OAK\CSP\ARM\INTEL\PXA27X\XLLP\SOURCE\
xlli_lowlev_init.s
xlli_intr_init; xlli_mem_Tmax; xlli_mem_restart; xlli_mem_Topt; xlli_mem_restart;
xlli_ost_init; xlli_pwrmgr_init; xlli_IMpwr_init; xlli_GPIO_init
- F:\WINCE500\PLATFORM\MAINSTONEII\SRC\COMMON\FREQ\freq.s
OALXScaleSetFrequencies -> xlli_GPIO_init -> xlli_GPIO_init(15.)
2017年5月10日 星期三
縮小VDI檔案大小
於客體端
- sudo apt-get install zerofree
- 重開機進入Recovery Mode
- mount -n -o remount,ro -t ext3 /dev/sda1 /
- zerofree -v /dev/sda1
- VBoxManage modifymedium XXX.vdi --compact
2017年4月25日 星期二
chroot測試SDK出現cat /proc/cpuinfo錯誤
用chroot測試SDK,make時出現下面的錯誤
cat: /proc/cpuinfo: No such file or directory
解決,
sudo mount --bind /proc <chroot dir>/proc
cat: /proc/cpuinfo: No such file or directory
解決,
sudo mount --bind /proc <chroot dir>/proc
2017年4月21日 星期五
Build openWRT Image
- sudo tar -Jxv -f xxx-openwrt-sdk-xxx.tar.bz2
- apt-get install subversion
apt-get install wget
apt-get install libncurses5-dev
apt-get install zlib1g-dev
apt-get install gawk
apt-get install unzip
apt-get install python
apt-get install git
apt-get install file - git init
- cp util-linux-2.24.1.tar.xz到dl目錄
- make menuconfig
- make V=s (第一次要連網)
- 因util-linux-2.24.1.tar.xz已從server拿掉,自行下載copy到dl目錄。
-
遇到底下錯誤要先做git init
ramips_mt7621/base-files/ipkg-ramips_24kec/base-files/etc/banner
cat: /home/work/openwrt-sdk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7621/base-files/ipkg-ramips_24kec/base-files/etc/sdk.version: No such file or directory
訂閱:
文章 (Atom)