WhyCan Forum

本站无需注册,无需积分,无需回复可下载所有资料,如果真的喜欢小站,请您注册之后请至少回复一个帖子激活Id,谢谢支持! 站长QQ: 516333132 (挖坑网/填坑网) admin@whycan.cn

您尚未登录。

#1 2019-07-17 14:02:38

powerpan
会员
注册时间: 2019-05-05
累计积分: 14

Debian 9.9 文件系统制作

mkdir rootfs

1. debootstrap --foreign --verbose --arch=armhf  stretch rootfs http://ftp2.cn.debian.org/debian
2. cd rootfs
   mount --bind /dev dev/
   mount --bind /sys sys/
   mount --bind /proc proc/
   mount --bind /dev/pts dev/pts/
   cd ..
3. cp /usr/bin/qemu-arm-static rootfs/usr/bin/
   chmod +x rootfs/usr/bin/qemu-arm-static
4. 解压   
    LC_ALL=C LANGUAGE=C LANG=C chroot rootfs /debootstrap/debootstrap --second-stage --verbose
可以在这个时候
   LC_ALL=C LANGUAGE=C LANG=C chroot rootfs
   安装任何东西
5.passwd 设置root密码
   apt-cache clean 删除安装包
   exit
   rm rootfs/usr/bin/qemu-arm-static
   unmount all point 2 did.   ---- but all documents not mention this.
6. 在rootfs下面 运行 tar cvzf ../debian9.9.rootfs.gz .
    可以生成包,任意解压到文件系统即可

modify /etc/apt/sourc.list
deb http://ftp2.cn.debian.org/debian stretch main
modify /etc/ssh/sshd_config
PermitRootLogin yes

最近编辑记录 powerpan (2019-07-17 14:50:56)

离线

#2 2019-07-17 14:12:08

firstman
会员
注册时间: 2019-04-06
累计积分: 125

Re: Debian 9.9 文件系统制作

一直想跑 debian, 但是没有动手, 试一试楼主的流程, 顺便围观。

离线

#3 2019-07-17 14:13:34

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 7,180

Re: Debian 9.9 文件系统制作

楼主的日志:

insmod KOs/88x2bu.ko 
[   95.796041] RTW: module init start
[   95.799457] RTW: rtl88x2bu v5.6.1.2_32629.20190321_COEX20180928-6a6a
[   95.805879] RTW: build time: Jul 16 2019 10:47:09
[   95.810579] RTW: rtl88x2bu BT-Coex version = COEX20180928-6a6a
[   95.816534] RTW: rtw_inetaddr_notifier_register
[   95.821178] RTW: 
[   95.821178] usb_endpoint_descriptor(0):
[   95.826970] RTW: bLength=7
[   95.829675] RTW: bDescriptorType=5
[   95.833070] RTW: bEndpointAddress=84
[   95.836656] RTW: wMaxPacketSize=512
[   95.840139] RTW: bInterval=0
[   95.843014] RTW: RT_usb_endpoint_is_bulk_in = 4
[   95.847547] RTW: 
[   95.847547] usb_endpoint_descriptor(1):
[   95.853285] RTW: bLength=7
[   95.855999] RTW: bDescriptorType=5
[   95.859394] RTW: bEndpointAddress=5
[   95.862876] RTW: wMaxPacketSize=512
[   95.866369] RTW: bInterval=0
[   95.869245] RTW: RT_usb_endpoint_is_bulk_out = 5
[   95.873864] RTW: 
[   95.873864] usb_endpoint_descriptor(2):
[   95.879601] RTW: bLength=7
[   95.882303] RTW: bDescriptorType=5
[   95.885707] RTW: bEndpointAddress=6
[   95.889188] RTW: wMaxPacketSize=512
[   95.892669] RTW: bInterval=0
[   95.895554] RTW: RT_usb_endpoint_is_bulk_out = 6
[   95.900164] RTW: 
[   95.900164] usb_endpoint_descriptor(3):
[   95.905910] RTW: bLength=7
[   95.908612] RTW: bDescriptorType=5
[   95.912007] RTW: bEndpointAddress=87
[   95.915585] RTW: wMaxPacketSize=64
[   95.918992] RTW: bInterval=3
[   95.921867] RTW: RT_usb_endpoint_is_int_in = 7, Interval = 3
[   95.927528] RTW: 
[   95.927528] usb_endpoint_descriptor(4):
[   95.933266] RTW: bLength=7
[   95.935978] RTW: bDescriptorType=5
[   95.939373] RTW: bEndpointAddress=8
[   95.942855] RTW: wMaxPacketSize=512
[   95.946347] RTW: bInterval=0
[   95.949221] RTW: RT_usb_endpoint_is_bulk_out = 8
[   95.953841] RTW: nr_endpoint=5, in_num=2, out_num=3
[   95.953841] 
[   95.960185] RTW: USB_SPEED_HIGH
[   95.963324] RTW: CHIP TYPE: RTL8822B
[   95.978806] RTW: [HALMAC]11692M
[   95.978806] HALMAC_MAJOR_VER = 1
[   95.978806] HALMAC_PROTOTYPE_VER = 5
[   95.978806] HALMAC_MINOR_VER = 14
[   95.978806] HALMAC_PATCH_VER = 15
[   95.997203] RTW: rtw_hal_config_rftype RF_Type is 2 TotalTxPath is 2
[   96.003579] RTW: Chip Version Info: CHIP_8822B_Normal_Chip_UMC_D_CUT_2T2R_RomVer(3)
[   96.011316] RTW: config_chip_out_EP OutEpQueueSel(0x07), OutEpNumber(3)
[   96.019238] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[   96.542093] RTW: is_valid_id_status: HALMAC_FEATURE_DUMP_LOGICAL_EFUSE
[   96.548715] RTW: HW EFUSE
[   96.551340] RTW: 0x000: 29 81 00 3C  09 00 A1 00  94 07 64 04  00 00 A3 00  
[   96.558438] RTW: 0x010: 2E 2E 2F 2E  2E 2E 2E 2E  2F 2E 2E 02  00 00 FF FF  
[   96.565528] RTW: 0x020: FF FF 1C 20  1C 20 20 20  1C 1E 1D 1E  1F 1D 20 21  
[   96.572599] RTW: 0x030: 02 00 FF FF  00 FF 00 00  FF FF 2E 2E  2E 2D 2D 2D  
[   96.579684] RTW: 0x040: 2E 2E 2E 2D  2D 02 00 00  FF FF FF FF  23 21 21 23  
[   96.586762] RTW: 0x050: 25 25 22 26  21 25 25 23  25 25 02 00  FF FF 00 FF  
[   96.593839] RTW: 0x060: 00 00 FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.600904] RTW: 0x070: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.607980] RTW: 0x080: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.615057] RTW: 0x090: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.622122] RTW: 0x0A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.629207] RTW: 0x0B0: FF FF FF FF  FF FF FF FF  7F 0D 1F 00  FF FF FF FF  
[   96.636291] RTW: 0x0C0: FF 29 00 10  00 E6 00 00  00 FF 03 FF  FF FF FF FF  
[   96.643357] RTW: 0x0D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.650433] RTW: 0x0E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.657510] RTW: 0x0F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.664586] RTW: 0x100: DA 0B 2C B8  C1 67 02 54  C9 DF 56 26  74 09 03 52  
[   96.671651] RTW: 0x110: 65 61 6C 74  65 6B 0E 03  38 30 32 2E  31 31 61 63  
[   96.678727] RTW: 0x120: 20 4E 49 43  08 03 31 32  33 34 35 36  FF FF FF FF  
[   96.685804] RTW: 0x130: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.692869] RTW: 0x140: 33 0A 1F 01  00 00 21 0F  FF FF FF FF  FF FF FF FF  
[   96.699943] RTW: 0x150: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.707018] RTW: 0x160: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.714094] RTW: 0x170: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.721159] RTW: 0x180: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.728235] RTW: 0x190: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.735311] RTW: 0x1A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.742383] RTW: 0x1B0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.749458] RTW: 0x1C0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.756535] RTW: 0x1D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.763601] RTW: 0x1E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.770677] RTW: 0x1F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.777753] RTW: 0x200: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.784829] RTW: 0x210: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.791894] RTW: 0x220: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.798968] RTW: 0x230: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.806047] RTW: 0x240: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.813111] RTW: 0x250: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.820186] RTW: 0x260: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.827261] RTW: 0x270: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.834338] RTW: 0x280: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.841403] RTW: 0x290: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.848483] RTW: 0x2A0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.855560] RTW: 0x2B0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.862625] RTW: 0x2C0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.869701] RTW: 0x2D0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.876777] RTW: 0x2E0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.883853] RTW: 0x2F0: FF FF FF FF  FF FF FF FF  FF FF FF FF  FF FF FF FF  
[   96.890923] RTW: EEPROM ID = 0x8129
[   96.894419] RTW: EEPROM Version = 0
[   96.897946] RTW: EEPROM Regulatory=0x01
[   96.901777] RTW: EEPROM Board Type=0x01
[   96.905623] RTW: EEPROM Enable BT-coex, ant_num=2
[   96.910322] RTW: hal_com_config_channel_plan chplan:0x7F
[   96.915638] RTW: EEPROM crystal_cap=0x0d
[   96.919555] RTW: EEPROM ThermalMeter=0x1f
[   96.923557] RTW: EEPROM Customer ID=0xe6
[   96.927485] RTW: EEPROM SupportRemoteWakeup=0
[   96.931836] RTW: EEPROM PAType_2G is 0x0, ExternalPA_2G = 0
[   96.937403] RTW: EEPROM PAType_5G is 0x0, external_pa_5g = 0
[   96.943053] RTW: EEPROM LNAType_2G is 0x0, ExternalLNA_2G = 0
[   96.948807] RTW: EEPROM LNAType_5G is 0x0, external_lna_5g = 0
[   96.954643] RTW: EEPROM TypeGPA = 0x0
[   96.958300] RTW: EEPROM TypeAPA = 0x0
[   96.961956] RTW: EEPROM TypeGLNA = 0x0
[   96.965709] RTW: EEPROM TypeALNA = 0x0
[   96.969452] RTW: EEPROM rfe_type=0x3
[   96.973031] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[   96.992269] RTW: is_valid_id_status: HALMAC_FEATURE_DUMP_PHYSICAL_EFUSE
[   96.998956] RTW: EEPROM efuse[0x3D7]=0xf2
[   97.002972] RTW: EEPROM efuse[0x3D8]=0xf3
[   97.007024] RTW: EEPROM USB Switch=1
[   97.010596] RTW: EEPROM VID = 0x0BDA, PID = 0xB82C
[   97.034700] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[   97.040826] RTW: SetHwReg: bMacPwrCtrlOn=1
[   97.047324] RTW: rtl8822b_fw_dl fw source from array
[   97.144465] RTW: _rtw_hal_set_fw_rsvd_page((null)) Get [ NOR ] RsvdPageNUm  ==>
[   97.151799] RTW: LocPsPoll: 4
[   97.154825] RTW: LocNullData: 5
[   97.157972] RTW: LocQosNull: 6
[   97.161042] RTW: LocBTQosNull: 7
[   97.164303] RTW: _rtw_hal_set_fw_rsvd_page((null)) Get [ NOR ] RsvdPageNUm <==
[   97.185576] RTW: rtl8822b_fw_dl Download Firmware from array success
[   97.191948] RTW: NIC FW Version:27 SubVersion:6 FW size:153152
[   97.200582] RTW: SetHwReg: bMacPwrCtrlOn=0
[   97.214333] RTW: hal_read_mac_hidden_rpt OK! (1, 20ms), fwdl:1, id:0x19
[   97.220976] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[   97.227232] RTW: is_valid_id_status: HALMAC_FEATURE_DUMP_PHYSICAL_EFUSE
[   97.233928] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[   97.239592] RTW: is_valid_id_status: HALMAC_FEATURE_DUMP_PHYSICAL_EFUSE
[   97.246276] RTW: ERROR [HALMAC][ERR]Dump efuse in suspend
[   97.252866] RTW: is_valid_id_status: HALMAC_FEATURE_DUMP_PHYSICAL_EFUSE
[   97.259552] RTW: rtw_hal_read_chip_info in 1240 ms
[   97.264404] RTW: init_channel_set((null)) ChannelPlan ID:0x7f, ch num:37
[   97.272292] RTW: init_mlme_default_rate_set: support CCK
[   97.277681] RTW: init_mlme_default_rate_set: support OFDM
[   97.284187] RTW: NR_RECVBUFF: 8
[   97.287342] RTW: MAX_RECVBUF_SZ: 32768
[   97.291090] RTW: NR_PREALLOC_RECV_SKB: 8
[   97.296262] RTW: rtw_alloc_macid((null)) if1, mac_addr:ff:ff:ff:ff:ff:ff macid:1
[   97.304334] RTW: IQK FW offload:enable
[   97.308100] RTW: init_phydm_cominfo: fab_ver=1 cut_ver=3
[   97.313435] RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[   97.322582] RTW: phy_ConfigBBWithPgParaFile(): No File PHY_REG_PG.txt, Load from HWImg Array!
[   97.331190] RTW: default power by rate loaded
[   97.335668] RTW: can't get autopm:
[   97.339075] RTW: rtw_macaddr_cfg mac addr:54:c9:df:56:26:74
[   97.344667] RTW: bDriverStopped:True, bSurpriseRemoved:False, bup:0, hw_init_completed:0
[   97.352809] RTW: rtw_wiphy_alloc(phy0)
[   97.356589] RTW: rtw_wdev_alloc(padapter=c93b9000)
[   97.361382] RTW: rtw_wiphy_register(phy0)
[   97.365420] RTW: Register RTW cfg80211 vendor cmd(0x67) interface
[   97.371728] RTW: rtw_reg_notifier: NL80211_REGDOM_SET_BY_CORE
[   97.377859] RTW: rtw_ndev_init(wlan0) if1 mac_addr=54:c9:df:56:26:74
[   97.384559] RTW: rtw_ndev_notifier_call(wlan0) state:16
[   97.390805] RTW: cfg80211_rtw_get_txpower
[   97.394911] RTW: rtw_ndev_notifier_call(wlan0) state:5
[   97.400225] usbcore: registered new interface driver rtl88x2bu
[   97.406104] RTW: module init ret=0
root@LicheePi:~/nfs# ifconfig wlan0 up
[  102.758895] RTW: rtw_ndev_notifier_call(wlan0) state:13
[  102.764245] RTW: _netdev_open(wlan0) , bup=0
[  102.768516] RTW: rtl8822b_hal_init fw source from array
[  102.789699] RTW: [HALMAC][ALWAYS]shall R reg twice!!
[  102.795703] RTW: SetHwReg: bMacPwrCtrlOn=1
[  102.901093] RTW: _rtw_hal_set_fw_rsvd_page(wlan0) Get [ NOR ] RsvdPageNUm  ==>
[  102.908369] RTW: LocPsPoll: 4
[  102.911349] RTW: LocNullData: 5
[  102.914529] RTW: LocQosNull: 6
[  102.917592] RTW: LocBTQosNull: 7
[  102.920819] RTW: _rtw_hal_set_fw_rsvd_page(wlan0) Get [ NOR ] RsvdPageNUm <==
[  102.943702] RTW: rtw_start_drv_threads(wlan0) enter
[  102.948638] RTW: rtw_start_drv_threads(wlan0) start RTW_CMD_THREAD
[  103.885956] RTW: rtl8822b_hal_init Download Firmware from array success
[  103.892591] RTW: NIC FW Version:27 SubVersion:6 FW size:153152
[  103.923336] RTW: is_valid_id_status: HALMAC_FEATURE_DUMP_PHYSICAL_EFUSE
[  103.946032] RTW: ERROR rtl8822b_c2h_handler_no_io: C2H(9) enqueue FAIL!
[  103.954266] RTW: rtl8822b_init_misc: AMPDU agg retry with new/break when rate fall back: true / true
[  103.965202] RTW: rtl8822bu_init in 1200ms
[  103.969225] RTW: rtw_hal_set_macaddr_port wlan0- hw port(0) mac_addr =54:c9:df:56:26:74
[  103.978334] RTW: rtw_hal_get_macaddr_port wlan0- hw port(0) mac_addr =54:c9:df:56:26:74
[  103.986401] RTW: wlan0- hw port(0) mac_addr =54:c9:df:56:26:74
[  103.992846] RTW: [HW_VAR_ENABLE_RX_BAR] 0x6A2=0x100
[  104.022329] RTW: set_opmode_port0(wlan0): hw_port(0) mode=2
[  104.028948] RTW: MAC Address = 54:c9:df:56:26:74
[  104.033578] RTW: rtw_cfg80211_init_wiphy:rf_type=2
[  104.038391] RTW: [HT] HAL Support LDPC = 0x03
[  104.042816] RTW: [HT] HAL Support STBC = 0x01
[  104.047211] RTW: [HT] HAL Support LDPC = 0x03
[  104.051562] RTW: [HT] HAL Support STBC = 0x01
[  104.055932] RTW: [VHT] Support LDPC = 0x03
[  104.060028] RTW: [VHT] Support STBC = 0x03
[  104.064135] RTW: [VHT] Support Beamformee
[  104.068138] RTW: [VHT] Support MU-MIMO STA
[  104.072264] RTW: rtw_build_vht_cap_ie, line818, Set MAX MPDU len = 11454 bytes
[  104.079495] RTW: [VHT] Declare supporting RX LDPC
[  104.084214] RTW: [VHT] Declare supporting SGI 80MHz
[  104.089083] RTW: [VHT] Declare supporting TX STBC
[  104.093783] RTW: [VHT] Declare supporting RX STBC = 1
[  104.098837] RTW: [VHT] Declare supporting SU Bfee
[  104.103533] RTW: [VHT] Declare supporting MU Bfee
[  104.108252] RTW: -871x_drv - drv_open, bup=1
[  104.112622] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  104.118578] RTW: cfg80211_rtw_set_power_mgmt(wlan0) enabled:1, timeout:-1
[  104.125375] RTW: rtw_ndev_notifier_call(wlan0) state:1
root@LicheePi:~/nfs# [  106.178746] RTW: ==>rtw_ps_processor .fw_state(8)
[  106.190581] RTW: ==>ips_enter cnts:1
[  106.194205] RTW: nolinked power save enter
[  106.198310] RTW: ===> rtw_ips_pwr_down...................
[  106.203709] RTW: ====> rtw_ips_dev_unload...
[  106.209702] RTW: usb_read_port_cancel
[  106.216590] RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
[  106.229335] RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
[  106.242336] RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
[  106.254959] RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
[  106.267582] RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
[  106.280204] RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
[  106.292828] RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
[  106.305452] RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
[  106.314800] RTW: usb_write_port_cancel
[  106.318611] RTW: ==> rtl8822bu_deinit
[  106.324352] RTW: SetHwReg: bMacPwrCtrlOn=0
[  106.338074] RTW: rtl8822bu_deinit <==
[  106.342821] RTW: <=== rtw_ips_pwr_down..................... in 140ms

看起来并没有奔溃?

离线

#4 2019-07-17 14:51:51

powerpan
会员
注册时间: 2019-05-05
累计积分: 14

Re: Debian 9.9 文件系统制作

崩溃是别的问题导致的,因为没有挂boot,所以没有更新到zImage

离线

#5 2019-07-17 14:53:33

firstman
会员
注册时间: 2019-04-06
累计积分: 125

Re: Debian 9.9 文件系统制作

4. 解压   
    LC_ALL=C LANGUAGE=C LANG=C chroot rootfs /debootstrap/debootstrap --second-stage --verbose


I: Configuring apt-utils...
I: Configuring mount...
I: Configuring libfdisk1:armhf...
I: Configuring util-linux...
I: Configuring e2fsprogs...
I: Configuring udev...
I: Configuring sysvinit-utils...
I: Configuring systemd...
I: Configuring libc-bin...
I: Unpacking the base system...
I: Unpacking systemd-sysv...
W: Failure while installing base packages.  This will be re-attempted up to five times.
W: See //debootstrap/debootstrap.log for details (possibly the package archive is at fault)
W: Failure while installing base packages.  This will be re-attempted up to five times.
W: See //debootstrap/debootstrap.log for details (possibly the package archive is at fault)
W: Failure while installing base packages.  This will be re-attempted up to five times.
W: See //debootstrap/debootstrap.log for details (possibly the package archive is at fault)
W: Failure while installing base packages.  This will be re-attempted up to five times.
W: See //debootstrap/debootstrap.log for details (possibly the package archive is at fault)
W: Failure while installing base packages.  This will be re-attempted up to five times.
W: See //debootstrap/debootstrap.log for details (possibly the package archive is at fault)
root@ubuntu:/opt/debian#

请教楼主, 这个错误怎么解决?

离线

#6 2019-07-17 15:22:59

Gentlepig
会员
注册时间: 2018-10-24
累计积分: 182

Re: Debian 9.9 文件系统制作

这是在v3s上跑?还是在f1c100s上跑?

离线

#7 2019-07-17 15:29:59

powerpan
会员
注册时间: 2019-05-05
累计积分: 14

Re: Debian 9.9 文件系统制作

firstman 说:

4. 解压   
    LC_ALL=C LANGUAGE=C LANG=C chroot rootfs /debootstrap/debootstrap --second-stage --verbose


I: Configuring apt-utils...
I: Configuring mount...
I: Configuring libfdisk1:armhf...
I: Configuring util-linux...
I: Configuring e2fsprogs...
I: Configuring udev...
I: Configuring sysvinit-utils...
I: Configuring systemd...
I: Configuring libc-bin...
I: Unpacking the base system...
I: Unpacking systemd-sysv...
W: Failure while installing base packages.  This will be re-attempted up to five times.
W: See //debootstrap/debootstrap.log for details (possibly the package archive is at fault)
W: Failure while installing base packages.  This will be re-attempted up to five times.
W: See //debootstrap/debootstrap.log for details (possibly the package archive is at fault)
W: Failure while installing base packages.  This will be re-attempted up to five times.
W: See //debootstrap/debootstrap.log for details (possibly the package archive is at fault)
W: Failure while installing base packages.  This will be re-attempted up to five times.
W: See //debootstrap/debootstrap.log for details (possibly the package archive is at fault)
W: Failure while installing base packages.  This will be re-attempted up to five times.
W: See //debootstrap/debootstrap.log for details (possibly the package archive is at fault)
root@ubuntu:/opt/debian#

请教楼主, 这个错误怎么解决?


包没下载完,就开始解压了

离线

#8 2019-07-17 15:30:04

firstman
会员
注册时间: 2019-04-06
累计积分: 125

Re: Debian 9.9 文件系统制作

Gentlepig 说:

这是在v3s上跑?还是在f1c100s上跑?

f1c100s可能不行,内存太少。

离线

#9 2019-07-17 15:30:48

powerpan
会员
注册时间: 2019-05-05
累计积分: 14

Re: Debian 9.9 文件系统制作

Gentlepig 说:

这是在v3s上跑?还是在f1c100s上跑?

armhf,armv7指令的,我用于S3但不限于S3

离线

#10 2019-07-17 15:30:58

firstman
会员
注册时间: 2019-04-06
累计积分: 125

Re: Debian 9.9 文件系统制作

我怎么感觉是 /debootstrap/debootstrap  这个路径错误?

离线

#11 2019-07-17 22:20:10

Hu187
会员
注册时间: 2019-02-18
累计积分: 39

Re: Debian 9.9 文件系统制作

我在蚂蚁矿机主控板上跑起来了,没加--verbose。使用内置工具进行第二阶段定制。

离线

#12 2019-07-17 22:20:41

Hu187
会员
注册时间: 2019-02-18
累计积分: 39

Re: Debian 9.9 文件系统制作

我在蚂蚁矿机主控板上跑起来了,没加--verbose。使用内置工具进行第二阶段定制。

离线

#13 2019-07-17 22:36:01

powerpan
会员
注册时间: 2019-05-05
累计积分: 14

Re: Debian 9.9 文件系统制作

Hu187 说:

我在蚂蚁矿机主控板上跑起来了,没加--verbose。使用内置工具进行第二阶段定制。

verbose就是输出信息而已

离线

#14 2019-07-17 22:46:37

metro
会员
注册时间: 2019-03-09
累计积分: 13

Re: Debian 9.9 文件系统制作

我也在矿渣上跑起来了,不过没用qemu装软件,而是直接在板上操作,似乎可以正常工作。。尝试用mksquashfs压缩了一下,可以放到256M的NAND里,不过还没试过直接用squashfs的速度如何 tongue

离线

#15 2019-07-18 08:28:41

还能这么玩
会员
注册时间: 2019-04-14
累计积分: 59

Re: Debian 9.9 文件系统制作

请教各位, 这样制作的 debian 只是一个根文件系统吗? 比起其他的系统有什么优势?

离线

#16 2019-07-18 19:18:13

ippen
会员
注册时间: 2018-07-22
累计积分: 213

Re: Debian 9.9 文件系统制作

这样做出来的是一个最小版本的Debian,好处是可以用debian的包管理系统,坏处是资源占用比buildroot多,体积大

离线

#17 2019-07-18 21:33:02

迪卡
会员
注册时间: 2018-11-02
累计积分: 207

Re: Debian 9.9 文件系统制作

占用内存多少呀,看看V3S  64MB够不够啊

离线

#18 2019-07-19 09:03:52

firstman
会员
注册时间: 2019-04-06
累计积分: 125

Re: Debian 9.9 文件系统制作

按楼主的教程, 又失败一次,

还是卡在

I: Unpacking libxapian30:armhf...
W: Failure while installing base packages.  This will be re-attempted up to five times.
W: See //debootstrap/debootstrap.log for details (possibly the package archive is at fault)
W: Failure while installing base packages.  This will be re-attempted up to five times.
W: See //debootstrap/debootstrap.log for details (possibly the package archive is at fault)
W: Failure while installing base packages.  This will be re-attempted up to five times.
W: See //debootstrap/debootstrap.log for details (possibly the package archive is at fault)

W: Failure while installing base packages.  This will be re-attempted up to five times.
W: See //debootstrap/debootstrap.log for details (possibly the package archive is at fault)
W: Failure while installing base packages.  This will be re-attempted up to five times.
W: See //debootstrap/debootstrap.log for details (possibly the package archive is at fault)

接着换一个网址再试,

debootstrap --foreign --verbose --arch=armhf stretch rootfs http://ftp.de.debian.org/debian

仍然一样, 换一台服务器继续,

还是用楼主提供的服务器地址, 就正常了。

看来服务器这个坑还挺大的.

离线

#19 2019-07-19 09:53:12

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 7,180

Re: Debian 9.9 文件系统制作

mkdir /opt/rootfs -p

apt-get install debootstrap -y
apt-get install qemu-user-static -y

cd /opt/
#debootstrap --foreign --verbose --arch=armhf  stretch rootfs http://ftp2.cn.debian.org/debian 
debootstrap --foreign --verbose --arch=armhf stretch rootfs http://ftp.de.debian.org/debian


###挂载###
mount --bind /dev   /opt/rootfs/dev/
mount --bind /sys   /opt/rootfs/sys/
mount --bind /proc   /opt/rootfs/proc/
mount --bind /dev/pts /opt/rootfs/dev/pts/

cp /usr/bin/qemu-arm-static /opt/rootfs/usr/bin/
chmod +x /opt/rootfs/usr/bin/qemu-arm-static
   
###解压###
LC_ALL=C LANGUAGE=C LANG=C chroot rootfs /debootstrap/debootstrap --second-stage --verbose

###可以在这个时候, 安装任何东西###
LC_ALL=C LANGUAGE=C LANG=C chroot rootfs

###删除qemu-arm-static, 深藏功与名###
rm rootfs/usr/bin/qemu-arm-static

###卸载###
umount /opt/rootfs/dev/
umount /opt/rootfs/sys/
umount /opt/rootfs/proc/
umount /opt/rootfs/dev/pts/

cd /opt/rootfs/
tar cvzf ../debian9.9.rootfs.gz .

把楼主一楼的教程总结了一下 ^_^

Ubuntu16.04 可以完成,
两台 Ubuntu14.04 都是和楼上一样的错误.

离线

#20 2019-07-19 10:24:21

Jmhh247
会员
注册时间: 2018-12-21
累计积分: 98

Re: Debian 9.9 文件系统制作

真不错,学习。

离线

#21 2019-07-19 15:08:57

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 7,180

Re: Debian 9.9 文件系统制作

root@test4:~# cat /etc/issue
Debian GNU/Linux 9 \n \l

root@test4:~#
root@test4:~#
root@test4:~#
root@test4:~# apt-get install apache2
Reading package lists... Done
Building dependency tree... Done
The following additional packages will be installed:
  apache2-bin apache2-data apache2-utils bzip2 file libapr1 libaprutil1
  libaprutil1-dbd-sqlite3 libaprutil1-ldap libexpat1 libicu57 libldap-2.4-2
  libldap-common liblua5.2-0 libmagic-mgc libmagic1 libnghttp2-14 libperl5.24
  libsasl2-2 libsasl2-modules libsasl2-modules-db libxml2 mime-support openssl
  perl perl-modules-5.24 rename sgml-base ssl-cert xml-core xz-utils
Suggested packages:
  www-browser apache2-doc apache2-suexec-pristine | apache2-suexec-custom
  bzip2-doc libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal
  libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql
  ca-certificates perl-doc libterm-readline-gnu-perl
  | libterm-readline-perl-perl make sgml-base-doc openssl-blacklist debhelper
The following NEW packages will be installed:
  apache2 apache2-bin apache2-data apache2-utils bzip2 file libapr1
  libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libexpat1 libicu57
  libldap-2.4-2 libldap-common liblua5.2-0 libmagic-mgc libmagic1
  libnghttp2-14 libperl5.24 libsasl2-2 libsasl2-modules libsasl2-modules-db
  libxml2 mime-support openssl perl perl-modules-5.24 rename sgml-base
  ssl-cert xml-core xz-utils
0 upgraded, 32 newly installed, 0 to remove and 0 not upgraded.
Need to get 18.2 MB of archives.
After this operation, 77.4 MB of additional disk space will be used.
Do you want to continue? [Y/n]

感谢楼主, 我的命令行 debian 跑起来了!

离线

#22 2019-07-21 23:32:42

powerpan
会员
注册时间: 2019-05-05
累计积分: 14

Re: Debian 9.9 文件系统制作

firstman 说:

按楼主的教程, 又失败一次,

还是卡在
3

I: Unpacking libxapian30:armhf...
W: Failure while installing base packages.  This will be re-attempted up to five times.
W: See //debootstrap/debootstrap.log for details (possibly the package archive is at fault)
W: Failure while installing base packages.  This will be re-attempted up to five times.
W: See //debootstrap/debootstrap.log for details (possibly the package archive is at fault)
W: Failure while installing base packages.  This will be re-attempted up to five times.
W: See //debootstrap/debootstrap.log for details (possibly the package archive is at fault)

W: Failure while installing base packages.  This will be re-attempted up to five times.
W: See //debootstrap/debootstrap.log for details (possibly the package archive is at fault)
W: Failure while installing base packages.  This will be re-attempted up to five times.
W: See //debootstrap/debootstrap.log for details (possibly the package archive is at fault)

接着换一个网址再试,

debootstrap --foreign --verbose --arch=armhf stretch rootfs http://ftp.de.debian.org/debian

仍然一样, 换一台服务器继续,

还是用楼主提供的服务器地址, 就正常了。

看来服务器这个坑还挺大的.


出现错误继续之前的一步直到没错就行,不用换服务器,偶尔出错而已

离线

#23 2019-07-21 23:35:15

powerpan
会员
注册时间: 2019-05-05
累计积分: 14

Re: Debian 9.9 文件系统制作

还能这么玩 说:

请教各位, 这样制作的 debian 只是一个根文件系统吗? 比起其他的系统有什么优势?

兼容性好,可以apt-get不用啥都diy
比如蓝牙4就得9以上的版本了,当然自己编译一定行就是麻烦点

离线

#24 2019-07-21 23:35:43

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 7,180

Re: Debian 9.9 文件系统制作

我当时 Ubuntu 14.04 测试每次必出错,  而且服务器是搬瓦工的 vps,
在本地电脑也测试过, 版本也是 14.04.

可能和14.04 有点点关系.

离线

页脚