WhyCan Forum(哇酷开发者社区)

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn

您尚未登录。

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

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

Debian 9.9 (stretch) 文件系统制作

0. 准备工作:

sudo apt install qemu-user-static -y
sudo apt install debootstrap -y
mkdir rootfs

1. debootstrap

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
累计积分: 279

Re: Debian 9.9 (stretch) 文件系统制作

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

离线

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

晕哥
管理员
注册时间: 2017-09-06
累计积分: 9,190

Re: Debian 9.9 (stretch) 文件系统制作

楼主的日志:

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
累计积分: 18

Re: Debian 9.9 (stretch) 文件系统制作

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

离线

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

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

Re: Debian 9.9 (stretch) 文件系统制作

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
累计积分: 537

Re: Debian 9.9 (stretch) 文件系统制作

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

离线

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

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

Re: Debian 9.9 (stretch) 文件系统制作

firstman 说:

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


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

离线

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

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

Re: Debian 9.9 (stretch) 文件系统制作

Gentlepig 说:

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

f1c100s可能不行,内存太少。

离线

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

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

Re: Debian 9.9 (stretch) 文件系统制作

Gentlepig 说:

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

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

离线

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

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

Re: Debian 9.9 (stretch) 文件系统制作

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

离线

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

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

Re: Debian 9.9 (stretch) 文件系统制作

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

离线

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

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

Re: Debian 9.9 (stretch) 文件系统制作

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

离线

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

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

Re: Debian 9.9 (stretch) 文件系统制作

Hu187 说:

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

verbose就是输出信息而已

离线

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

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

Re: Debian 9.9 (stretch) 文件系统制作

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

离线

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

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

Re: Debian 9.9 (stretch) 文件系统制作

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

离线

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

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

Re: Debian 9.9 (stretch) 文件系统制作

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

离线

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

迪卡
会员
所在地: 河北
注册时间: 2018-11-02
累计积分: 775
个人网站

Re: Debian 9.9 (stretch) 文件系统制作

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

离线

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

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

Re: Debian 9.9 (stretch) 文件系统制作

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

还是卡在

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

晕哥
管理员
注册时间: 2017-09-06
累计积分: 9,190

Re: Debian 9.9 (stretch) 文件系统制作

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
累计积分: 262

Re: Debian 9.9 (stretch) 文件系统制作

真不错,学习。

离线

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

晕哥
管理员
注册时间: 2017-09-06
累计积分: 9,190

Re: Debian 9.9 (stretch) 文件系统制作

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
累计积分: 18

Re: Debian 9.9 (stretch) 文件系统制作

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
累计积分: 18

Re: Debian 9.9 (stretch) 文件系统制作

还能这么玩 说:

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

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

离线

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

晕哥
管理员
注册时间: 2017-09-06
累计积分: 9,190

Re: Debian 9.9 (stretch) 文件系统制作

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

可能和14.04 有点点关系.

离线

#25 2019-10-11 23:13:21

xgui
会员
注册时间: 2019-09-07
累计积分: 224

Re: Debian 9.9 (stretch) 文件系统制作

root@whycan-MacBookAir:/opt/rootfs# debootstrap --foreign --verbose --arch=armhf  stretch rootfs http://ftp2.cn.debian.org/debian
W: Cannot check Release signature; keyring file not available /usr/share/keyrings/debian-archive-keyring.gpg
I: Retrieving InRelease 
I: Retrieving Release 
I: Retrieving Packages 
I: Validating Packages 
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional required dependencies: libaudit-common libaudit1 libbz2-1.0 libcap-ng0 libdb5.3 libdebconfclient0 libgcrypt20 libgpg-error0 liblz4-1 libncursesw5 libsemanage-common libsemanage1 libsystemd0 libudev1 libustr-1.0-1 
I: Found additional base dependencies: dmsetup gnupg-agent libapparmor1 libassuan0 libbsd0 libcap2 libcryptsetup4 libdevmapper1.02.1 libdns-export162 libelf1 libfastjson4 libffi6 libgmp10 libgnutls30 libhogweed4 libidn11 libidn2-0 libip4tc0 libip6tc0 libiptc0 libisc-export160 libksba8 liblocale-gettext-perl liblognorm5 libmnl0 libncurses5 libnetfilter-conntrack3 libnettle6 libnfnetlink0 libnpth0 libp11-kit0 libpsl5 libseccomp2 libsqlite3-0 libtasn1-6 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libunistring0 libxtables12 pinentry-curses xxd 
I: Checking component main on http://ftp2.cn.debian.org/debian...
I: Retrieving libacl1 2.2.52-3+b1
I: Validating libacl1 2.2.52-3+b1
I: Retrieving adduser 3.115
I: Validating adduser 3.115
I: Retrieving libapparmor1 2.11.0-3+deb9u2
I: Validating libapparmor1 2.11.0-3+deb9u2
I: Retrieving apt 1.4.9
I: Validating apt 1.4.9
I: Retrieving apt-utils 1.4.9
I: Validating apt-utils 1.4.9
I: Retrieving libapt-inst2.0 1.4.9
I: Validating libapt-inst2.0 1.4.9
I: Retrieving libapt-pkg5.0 1.4.9
I: Validating libapt-pkg5.0 1.4.9
I: Retrieving libattr1 1:2.4.47-2+b2
I: Validating libattr1 1:2.4.47-2+b2
I: Retrieving libaudit-common 1:2.6.7-2
I: Validating libaudit-common 1:2.6.7-2
I: Retrieving libaudit1 1:2.6.7-2
I: Validating libaudit1 1:2.6.7-2
I: Retrieving base-files 9.9+deb9u11
I: Validating base-files 9.9+deb9u11
I: Retrieving base-passwd 3.5.43
I: Validating base-passwd 3.5.43
I: Retrieving bash 4.4-5
I: Validating bash 4.4-5
I: Retrieving libdns-export162 1:9.10.3.dfsg.P4-12.3+deb9u5
I: Validating libdns-export162 1:9.10.3.dfsg.P4-12.3+deb9u5
I: Retrieving libisc-export160 1:9.10.3.dfsg.P4-12.3+deb9u5
I: Validating libisc-export160 1:9.10.3.dfsg.P4-12.3+deb9u5
I: Retrieving bsdmainutils 9.0.12+nmu1
I: Validating bsdmainutils 9.0.12+nmu1
I: Retrieving libbz2-1.0 1.0.6-8.1
I: Validating libbz2-1.0 1.0.6-8.1
I: Retrieving libdebconfclient0 0.227
I: Validating libdebconfclient0 0.227
I: Retrieving coreutils 8.26-3
I: Validating coreutils 8.26-3
I: Retrieving cpio 2.11+dfsg-6
I: Validating cpio 2.11+dfsg-6
I: Retrieving cron 3.0pl1-128+deb9u1
I: Validating cron 3.0pl1-128+deb9u1
I: Retrieving libcryptsetup4 2:1.7.3-4
I: Validating libcryptsetup4 2:1.7.3-4
I: Retrieving dash 0.5.8-2.4
I: Validating dash 0.5.8-2.4
I: Retrieving libdb5.3 5.3.28-12+deb9u1
I: Validating libdb5.3 5.3.28-12+deb9u1
I: Retrieving debconf 1.5.61
I: Validating debconf 1.5.61
I: Retrieving debconf-i18n 1.5.61
I: Validating debconf-i18n 1.5.61
I: Retrieving debian-archive-keyring 2017.5+deb9u1
I: Validating debian-archive-keyring 2017.5+deb9u1
I: Retrieving debianutils 4.8.1.1
I: Validating debianutils 4.8.1.1
I: Retrieving diffutils 1:3.5-3
I: Validating diffutils 1:3.5-3
I: Retrieving dmidecode 3.0-4
I: Validating dmidecode 3.0-4
I: Retrieving dpkg 1.18.25
I: Validating dpkg 1.18.25
I: Retrieving e2fslibs 1.43.4-2
I: Validating e2fslibs 1.43.4-2
I: Retrieving e2fsprogs 1.43.4-2
I: Validating e2fsprogs 1.43.4-2
I: Retrieving libcomerr2 1.43.4-2
I: Validating libcomerr2 1.43.4-2
I: Retrieving libss2 1.43.4-2
I: Validating libss2 1.43.4-2
I: Retrieving libelf1 0.168-1
I: Validating libelf1 0.168-1
I: Retrieving findutils 4.6.0+git+20161106-2
I: Validating findutils 4.6.0+git+20161106-2
I: Retrieving gcc-6-base 6.3.0-18+deb9u1
I: Validating gcc-6-base 6.3.0-18+deb9u1
I: Retrieving libgcc1 1:6.3.0-18+deb9u1
I: Validating libgcc1 1:6.3.0-18+deb9u1
I: Retrieving libstdc++6 6.3.0-18+deb9u1
I: Validating libstdc++6 6.3.0-18+deb9u1
I: Retrieving libgdbm3 1.8.3-14
I: Validating libgdbm3 1.8.3-14
I: Retrieving libc-bin 2.24-11+deb9u4
I: Validating libc-bin 2.24-11+deb9u4
I: Retrieving libc6 2.24-11+deb9u4
I: Validating libc6 2.24-11+deb9u4
I: Retrieving multiarch-support 2.24-11+deb9u4
I: Validating multiarch-support 2.24-11+deb9u4
I: Retrieving libgmp10 2:6.1.2+dfsg-1
I: Validating libgmp10 2:6.1.2+dfsg-1
I: Retrieving gnupg 2.1.18-8~deb9u4
I: Validating gnupg 2.1.18-8~deb9u4
I: Retrieving gnupg-agent 2.1.18-8~deb9u4
I: Validating gnupg-agent 2.1.18-8~deb9u4
I: Retrieving gpgv 2.1.18-8~deb9u4
I: Validating gpgv 2.1.18-8~deb9u4
I: Retrieving libgnutls30 3.5.8-5+deb9u4
I: Validating libgnutls30 3.5.8-5+deb9u4
I: Retrieving grep 2.27-2
I: Validating grep 2.27-2
I: Retrieving gzip 1.6-5+b1
I: Validating gzip 1.6-5+b1
I: Retrieving hostname 3.18+b1
I: Validating hostname 3.18+b1
I: Retrieving ifupdown 0.8.19
I: Validating ifupdown 0.8.19
I: Retrieving init 1.48
I: Validating init 1.48
I: Retrieving init-system-helpers 1.48
I: Validating init-system-helpers 1.48
I: Retrieving iproute2 4.9.0-1+deb9u1
I: Validating iproute2 4.9.0-1+deb9u1
I: Retrieving iptables 1.6.0+snapshot20161117-6
I: Validating iptables 1.6.0+snapshot20161117-6
I: Retrieving libip4tc0 1.6.0+snapshot20161117-6
I: Validating libip4tc0 1.6.0+snapshot20161117-6
I: Retrieving libip6tc0 1.6.0+snapshot20161117-6
I: Validating libip6tc0 1.6.0+snapshot20161117-6
I: Retrieving libiptc0 1.6.0+snapshot20161117-6
I: Validating libiptc0 1.6.0+snapshot20161117-6
I: Retrieving libxtables12 1.6.0+snapshot20161117-6
I: Validating libxtables12 1.6.0+snapshot20161117-6
I: Retrieving iputils-ping 3:20161105-1
I: Validating iputils-ping 3:20161105-1
I: Retrieving isc-dhcp-client 4.3.5-3+deb9u1
I: Validating isc-dhcp-client 4.3.5-3+deb9u1
I: Retrieving isc-dhcp-common 4.3.5-3+deb9u1
I: Validating isc-dhcp-common 4.3.5-3+deb9u1
I: Retrieving kmod 23-2
I: Validating kmod 23-2
I: Retrieving libkmod2 23-2
I: Validating libkmod2 23-2
I: Retrieving libassuan0 2.4.3-2
I: Validating libassuan0 2.4.3-2
I: Retrieving libbsd0 0.8.3-1
I: Validating libbsd0 0.8.3-1
I: Retrieving libcap-ng0 0.7.7-3+b1
I: Validating libcap-ng0 0.7.7-3+b1
I: Retrieving libcap2 1:2.25-1
I: Validating libcap2 1:2.25-1
I: Retrieving libestr0 0.1.10-2
I: Validating libestr0 0.1.10-2
I: Retrieving libfastjson4 0.99.4-1
I: Validating libfastjson4 0.99.4-1
I: Retrieving libffi6 3.2.1-6
I: Validating libffi6 3.2.1-6
I: Retrieving libgcrypt20 1.7.6-2+deb9u3
I: Validating libgcrypt20 1.7.6-2+deb9u3
I: Retrieving libgpg-error0 1.26-2
I: Validating libgpg-error0 1.26-2
I: Retrieving libidn11 1.33-1
I: Validating libidn11 1.33-1
I: Retrieving libidn2-0 0.16-1+deb9u1
I: Validating libidn2-0 0.16-1+deb9u1
I: Retrieving libksba8 1.3.5-2
I: Validating libksba8 1.3.5-2
I: Retrieving liblocale-gettext-perl 1.07-3+b1
I: Validating liblocale-gettext-perl 1.07-3+b1
I: Retrieving liblogging-stdlog0 1.0.5-2+b2
I: Validating liblogging-stdlog0 1.0.5-2+b2
I: Retrieving liblognorm5 2.0.1-1.1+b1
I: Validating liblognorm5 2.0.1-1.1+b1
I: Retrieving libmnl0 1.0.4-2
I: Validating libmnl0 1.0.4-2
I: Retrieving libnetfilter-conntrack3 1.0.6-2
I: Validating libnetfilter-conntrack3 1.0.6-2
I: Retrieving libnfnetlink0 1.0.1-3
I: Validating libnfnetlink0 1.0.1-3
I: Retrieving libpipeline1 1.4.1-2
I: Validating libpipeline1 1.4.1-2
I: Retrieving libpsl5 0.17.0-3
I: Validating libpsl5 0.17.0-3
I: Retrieving libseccomp2 2.3.1-2.1+deb9u1
I: Validating libseccomp2 2.3.1-2.1+deb9u1
I: Retrieving libselinux1 2.6-3+b3
I: Validating libselinux1 2.6-3+b3
I: Retrieving libsemanage-common 2.6-2
I: Validating libsemanage-common 2.6-2
I: Retrieving libsemanage1 2.6-2
I: Validating libsemanage1 2.6-2
I: Retrieving libsepol1 2.6-2
I: Validating libsepol1 2.6-2
I: Retrieving libtasn1-6 4.10-1.1+deb9u1
I: Validating libtasn1-6 4.10-1.1+deb9u1
I: Retrieving libtext-charwidth-perl 0.04-7+b6
I: Validating libtext-charwidth-perl 0.04-7+b6
I: Retrieving libtext-iconv-perl 1.7-5+b4
I: Validating libtext-iconv-perl 1.7-5+b4
I: Retrieving libtext-wrapi18n-perl 0.06-7.1
I: Validating libtext-wrapi18n-perl 0.06-7.1
I: Retrieving libunistring0 0.9.6+really0.9.3-0.1
I: Validating libunistring0 0.9.6+really0.9.3-0.1
I: Retrieving logrotate 3.11.0-0.1
I: Validating logrotate 3.11.0-0.1
I: Retrieving lsb-base 9.20161125
I: Validating lsb-base 9.20161125
I: Retrieving dmsetup 2:1.02.137-2
I: Validating dmsetup 2:1.02.137-2
I: Retrieving libdevmapper1.02.1 2:1.02.137-2
I: Validating libdevmapper1.02.1 2:1.02.137-2
I: Retrieving liblz4-1 0.0~r131-2+b1
I: Validating liblz4-1 0.0~r131-2+b1
I: Retrieving mawk 1.3.3-17+b3
I: Validating mawk 1.3.3-17+b3
I: Retrieving nano 2.7.4-1
I: Validating nano 2.7.4-1
I: Retrieving libncurses5 6.0+20161126-1+deb9u2
I: Validating libncurses5 6.0+20161126-1+deb9u2
I: Retrieving libncursesw5 6.0+20161126-1+deb9u2
I: Validating libncursesw5 6.0+20161126-1+deb9u2
I: Retrieving libtinfo5 6.0+20161126-1+deb9u2
I: Validating libtinfo5 6.0+20161126-1+deb9u2
I: Retrieving ncurses-base 6.0+20161126-1+deb9u2
I: Validating ncurses-base 6.0+20161126-1+deb9u2
I: Retrieving ncurses-bin 6.0+20161126-1+deb9u2
I: Validating ncurses-bin 6.0+20161126-1+deb9u2
I: Retrieving netbase 5.4
I: Validating netbase 5.4
I: Retrieving libhogweed4 3.3-1+b2
I: Validating libhogweed4 3.3-1+b2
I: Retrieving libnettle6 3.3-1+b2
I: Validating libnettle6 3.3-1+b2
I: Retrieving libnewt0.52 0.52.19-1+b1
I: Validating libnewt0.52 0.52.19-1+b1
I: Retrieving whiptail 0.52.19-1+b1
I: Validating whiptail 0.52.19-1+b1
I: Retrieving libnpth0 1.3-1
I: Validating libnpth0 1.3-1
I: Retrieving libssl1.1 1.1.0k-1~deb9u1
I: Validating libssl1.1 1.1.0k-1~deb9u1
I: Retrieving libssl1.0.2 1.0.2s-1~deb9u1
I: Validating libssl1.0.2 1.0.2s-1~deb9u1
I: Retrieving libp11-kit0 0.23.3-2
I: Validating libp11-kit0 0.23.3-2
I: Retrieving libpam-modules 1.1.8-3.6
I: Validating libpam-modules 1.1.8-3.6
I: Retrieving libpam-modules-bin 1.1.8-3.6
I: Validating libpam-modules-bin 1.1.8-3.6
I: Retrieving libpam-runtime 1.1.8-3.6
I: Validating libpam-runtime 1.1.8-3.6
I: Retrieving libpam0g 1.1.8-3.6
I: Validating libpam0g 1.1.8-3.6
I: Retrieving libpcre3 2:8.39-3
I: Validating libpcre3 2:8.39-3
I: Retrieving perl-base 5.24.1-3+deb9u5
I: Validating perl-base 5.24.1-3+deb9u5
I: Retrieving pinentry-curses 1.0.0-2
I: Validating pinentry-curses 1.0.0-2
I: Retrieving libpopt0 1.16-10+b2
I: Validating libpopt0 1.16-10+b2
I: Retrieving libprocps6 2:3.3.12-3+deb9u1
I: Validating libprocps6 2:3.3.12-3+deb9u1
I: Retrieving procps 2:3.3.12-3+deb9u1
I: Validating procps 2:3.3.12-3+deb9u1
I: Retrieving libreadline7 7.0-3
I: Validating libreadline7 7.0-3
I: Retrieving readline-common 7.0-3
I: Validating readline-common 7.0-3
I: Retrieving rsyslog 8.24.0-1
I: Validating rsyslog 8.24.0-1
I: Retrieving sed 4.4-1
I: Validating sed 4.4-1
I: Retrieving sensible-utils 0.0.9+deb9u1
I: Validating sensible-utils 0.0.9+deb9u1
I: Retrieving login 1:4.4-4.1
I: Validating login 1:4.4-4.1
I: Retrieving passwd 1:4.4-4.1
I: Validating passwd 1:4.4-4.1
I: Retrieving libslang2 2.3.1-5
I: Validating libslang2 2.3.1-5
I: Retrieving libsqlite3-0 3.16.2-5+deb9u1
I: Validating libsqlite3-0 3.16.2-5+deb9u1
I: Retrieving libsystemd0 232-25+deb9u12
I: Validating libsystemd0 232-25+deb9u12
I: Retrieving libudev1 232-25+deb9u12
I: Validating libudev1 232-25+deb9u12
I: Retrieving systemd 232-25+deb9u12
I: Validating systemd 232-25+deb9u12
I: Retrieving systemd-sysv 232-25+deb9u12
I: Validating systemd-sysv 232-25+deb9u12
I: Retrieving udev 232-25+deb9u12
I: Validating udev 232-25+deb9u12
I: Retrieving sysvinit-utils 2.88dsf-59.9
I: Validating sysvinit-utils 2.88dsf-59.9
I: Retrieving tar 1.29b-1.1
I: Validating tar 1.29b-1.1
I: Retrieving tasksel 3.39
I: Validating tasksel 3.39
I: Retrieving tasksel-data 3.39
I: Validating tasksel-data 3.39
I: Retrieving tzdata 2019b-0+deb9u1
I: Validating tzdata 2019b-0+deb9u1
I: Retrieving libustr-1.0-1 1.0.4-6
I: Validating libustr-1.0-1 1.0.4-6
I: Retrieving bsdutils 1:2.29.2-1+deb9u1
I: Validating bsdutils 1:2.29.2-1+deb9u1
I: Retrieving libblkid1 2.29.2-1+deb9u1
I: Validating libblkid1 2.29.2-1+deb9u1
I: Retrieving libfdisk1 2.29.2-1+deb9u1
I: Validating libfdisk1 2.29.2-1+deb9u1
I: Retrieving libmount1 2.29.2-1+deb9u1
I: Validating libmount1 2.29.2-1+deb9u1
I: Retrieving libsmartcols1 2.29.2-1+deb9u1
I: Validating libsmartcols1 2.29.2-1+deb9u1
I: Retrieving libuuid1 2.29.2-1+deb9u1
I: Validating libuuid1 2.29.2-1+deb9u1
I: Retrieving mount 2.29.2-1+deb9u1
I: Validating mount 2.29.2-1+deb9u1
I: Retrieving util-linux 2.29.2-1+deb9u1
I: Validating util-linux 2.29.2-1+deb9u1
I: Retrieving vim-common 2:8.0.0197-4+deb9u3
I: Validating vim-common 2:8.0.0197-4+deb9u3
I: Retrieving vim-tiny 2:8.0.0197-4+deb9u3
I: Validating vim-tiny 2:8.0.0197-4+deb9u3
I: Retrieving xxd 2:8.0.0197-4+deb9u3
I: Validating xxd 2:8.0.0197-4+deb9u3
I: Retrieving wget 1.18-5+deb9u3
I: Validating wget 1.18-5+deb9u3
I: Retrieving libxapian30 1.4.3-2+deb9u3
I: Validating libxapian30 1.4.3-2+deb9u3
I: Retrieving liblzma5 5.2.2-1.2+b1
I: Validating liblzma5 5.2.2-1.2+b1
I: Retrieving zlib1g 1:1.2.8.dfsg-5
I: Validating zlib1g 1:1.2.8.dfsg-5
I: Chosen extractor for .deb packages: dpkg-deb
I: Extracting libacl1...
I: Extracting libattr1...
I: Extracting libaudit-common...
I: Extracting libaudit1...
I: Extracting base-files...
I: Extracting base-passwd...
I: Extracting bash...
I: Extracting libbz2-1.0...
I: Extracting libdebconfclient0...
I: Extracting coreutils...
I: Extracting dash...
I: Extracting libdb5.3...
I: Extracting debconf...
I: Extracting debianutils...
I: Extracting diffutils...
I: Extracting dpkg...
I: Extracting e2fslibs...
I: Extracting e2fsprogs...
I: Extracting libcomerr2...
I: Extracting libss2...
I: Extracting findutils...
I: Extracting gcc-6-base...
I: Extracting libgcc1...
I: Extracting libc-bin...
I: Extracting libc6...
I: Extracting multiarch-support...
I: Extracting grep...
I: Extracting gzip...
I: Extracting hostname...
I: Extracting init-system-helpers...
I: Extracting libcap-ng0...
I: Extracting libgcrypt20...
I: Extracting libgpg-error0...
I: Extracting libselinux1...
I: Extracting libsemanage-common...
I: Extracting libsemanage1...
I: Extracting libsepol1...
I: Extracting lsb-base...
I: Extracting liblz4-1...
I: Extracting mawk...
I: Extracting libncursesw5...
I: Extracting libtinfo5...
I: Extracting ncurses-base...
I: Extracting ncurses-bin...
I: Extracting libpam-modules...
I: Extracting libpam-modules-bin...
I: Extracting libpam-runtime...
I: Extracting libpam0g...
I: Extracting libpcre3...
I: Extracting perl-base...
I: Extracting sed...
I: Extracting sensible-utils...
I: Extracting login...
I: Extracting passwd...
I: Extracting libsystemd0...
I: Extracting libudev1...
I: Extracting sysvinit-utils...
I: Extracting tar...
I: Extracting tzdata...
I: Extracting libustr-1.0-1...
I: Extracting bsdutils...
I: Extracting libblkid1...
I: Extracting libfdisk1...
I: Extracting libmount1...
I: Extracting libsmartcols1...
I: Extracting libuuid1...
I: Extracting mount...
I: Extracting util-linux...
I: Extracting liblzma5...
I: Extracting zlib1g...

安装的包挺全的。

离线

#26 2019-10-13 12:38:48

nuvoton
会员
注册时间: 2019-06-17
累计积分: 59

Re: Debian 9.9 (stretch) 文件系统制作

2019-10-13_12-36-48屏幕截图.png

https://www.linuxquestions.org/questions/debian-26/how-to-install-debian-using-debootstrap-4175465295/

apt-get install gdm3 gnome

想把 X 桌面弄上去, 为什么要接近3G的空间啊, 哭.


请教给位大神, 有没有精简的桌面呢?

离线

#27 2019-10-13 13:34:34

awfans
会员
注册时间: 2018-04-03
累计积分: 264

Re: Debian 9.9 (stretch) 文件系统制作

http://zero.lichee.pro/%E8%B4%A1%E7%8C%AE/article%201.html

rootfs-minX.tar.gz debian(包含桌面系统)

这个带桌面的 debian 压缩后才 200M 左右, 怎么做到的?

离线

#28 2019-11-20 18:36:38

kernelpanic
会员
注册时间: 2019-11-08
累计积分: 20

Re: Debian 9.9 (stretch) 文件系统制作

谢谢分享,我可以打包出可启动的debian。

不过我登录名和密码怎么输入都不正确。

离线

#29 2019-11-20 18:38:23

晕哥
管理员
注册时间: 2017-09-06
累计积分: 9,190

Re: Debian 9.9 (stretch) 文件系统制作

kernelpanic 说:

谢谢分享,我可以打包出可启动的debian。

不过我登录名和密码怎么输入都不正确。

密码可以重置的,在电脑 chroot 之后输入 passwd root,然后输入两次密码就可以了。

离线

#30 2019-11-20 18:40:56

jimmy
会员
注册时间: 2017-10-29
累计积分: 314

Re: Debian 9.9 (stretch) 文件系统制作

kernelpanic 说:

谢谢分享,我可以打包出可启动的debian。

不过我登录名和密码怎么输入都不正确。

请教如何产生可以启动到 debian桌面?

离线

#31 2019-11-20 19:10:15

kernelpanic
会员
注册时间: 2019-11-08
累计积分: 20

Re: Debian 9.9 (stretch) 文件系统制作

jimmy 说:

请教如何产生可以启动到 debian桌面?

我是没安装桌面的, 你要桌面的话需要安装桌面相关的:看看的帖子有这个,  apt-get install gdm3 gnome   不过我没验证过,我连屏幕都没有。

离线

#32 2019-11-20 19:12:45

kernelpanic
会员
注册时间: 2019-11-08
累计积分: 20

Re: Debian 9.9 (stretch) 文件系统制作

晕哥 说:

密码可以重置的,在电脑 chroot 之后输入 passwd root,然后输入两次密码就可以了。

晕哥, 我有改过密码, 还是有问题。
我新增了一个用户 mike, 用 mike 登录可以进入, つ﹏⊂

离线

#33 2019-11-20 19:23:32

晕哥
管理员
注册时间: 2017-09-06
累计积分: 9,190

Re: Debian 9.9 (stretch) 文件系统制作

那奇怪了, 我可以改root的密码, 并且用root登录.

离线

#34 2020-03-10 22:01:50

我心飞翔
会员
注册时间: 2019-12-25
累计积分: 82

Re: Debian 9.9 (stretch) 文件系统制作

测试成功了,谢谢楼主.

离线

#35 2020-03-10 22:08:21

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

Re: Debian 9.9 (stretch) 文件系统制作

现在可以用qemu-debootstrap代替debootstrap,可以省略--foreign和--second-stage,自动完成安装。

离线

#36 2020-03-10 22:24:00

我心飞翔
会员
注册时间: 2019-12-25
累计积分: 82

Re: Debian 9.9 (stretch) 文件系统制作

metro 说:

现在可以用qemu-debootstrap代替debootstrap,可以省略--foreign和--second-stage,自动完成安装。

伸手党厚颜无耻在线求教程或链接.

离线

#37 2020-03-11 01:14:40

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

Re: Debian 9.9 (stretch) 文件系统制作

我心飞翔 说:

伸手党厚颜无耻在线求教程或链接.

QEMU/debootstrap approach
其他发行版同理,只是将镜像地址换一下。

离线

#38 2020-04-30 09:15:20

zhang235hai
会员
注册时间: 2020-04-06
累计积分: 120

Re: Debian 9.9 (stretch) 文件系统制作

晕哥 说:

那奇怪了, 我可以改root的密码, 并且用root登录.

按照教程我顺利的得到了  debian9.9.rootfs.gz
解压到SD卡之后
不断的重启
以下是我的串口信息:

U-Boot SPL 2017.01-rc2 (Apr 17 2020 - 15:16:18)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2 (Apr 17 2020 - 15:16:18 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

Setting up a 480x272 lcd console (overscan 0x0)
dotclock: 10000kHz = 10000kHz: (1 * 3MHz * 20) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000


U-Boot 2017.01-rc2 (Apr 17 2020 - 15:16:18 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

Setting up a 480x272 lcd console (overscan 0x0)
dotclock: 10000kHz = 10000kHz: (1 * 3MHz * 20) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
reading zImage
3929608 bytes read in 397 ms (9.4 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
12124 bytes read in 26 ms (455.1 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dfff5b ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero+ (root@iZwz91z0o8slonc8b7xpfiZ) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #2 SMP Fri Apr 17 11:45:48 CST 2020
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Zero with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3edf000 s33920 r8192 d23424 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16129
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 54564K/65024K available (6144K kernel code, 217K rwdata, 1436K rodata, 1024K init, 262K bss, 10460K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4000000 - 0xff800000   ( 952 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc3f80000   (  63 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a367c0   ( 218 kB)
[    0.000000]        .bss : 0xc0a3d874 - 0xc0a7f1fc   ( 263 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000019] Switching to timer-based delay loop, resolution 41ns
[    0.000187] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000421] Console: colour dummy device 80x30
[    0.000459] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000475] pid_max: default: 32768 minimum: 301
[    0.000599] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000615] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001212] CPU: Testing write buffer coherency: ok
[    0.001584] /cpus/cpu@0 missing clock-frequency property
[    0.001609] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002049] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002222] Hierarchical SRCU implementation.
[    0.002706] smp: Bringing up secondary CPUs ...
[    0.002721] smp: Brought up 1 node, 1 CPU
[    0.002729] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002736] CPU: All CPU(s) started in SVC mode.
[    0.003506] devtmpfs: initialized
[    0.006643] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006932] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.006960] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007123] pinctrl core: initialized pinctrl subsystem
[    0.007990] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[    0.008132] NET: Registered protocol family 16
[    0.008586] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009697] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009714] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023540] SCSI subsystem initialized
[    0.023824] usbcore: registered new interface driver usbfs
[    0.023915] usbcore: registered new interface driver hub
[    0.024036] usbcore: registered new device driver usb
[    0.024290] pps_core: LinuxPPS API ver. 1 registered
[    0.024299] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.024324] PTP clock support registered
[    0.024540] Advanced Linux Sound Architecture Driver Initialized.
[    0.026373] clocksource: Switched to clocksource arch_sys_counter
[    0.037356] NET: Registered protocol family 2
[    0.037946] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.037980] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.038005] TCP: Hash tables configured (established 1024 bind 1024)
[    0.038139] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.038188] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.038403] NET: Registered protocol family 1
[    0.039002] RPC: Registered named UNIX socket transport module.
[    0.039023] RPC: Registered udp transport module.
[    0.039030] RPC: Registered tcp transport module.
[    0.039037] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.041086] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.050135] NFS: Registering the id_resolver key type
[    0.050188] Key type id_resolver registered
[    0.050195] Key type id_legacy registered
[    0.051193] random: fast init done
[    0.053971] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.053993] io scheduler noop registered
[    0.054000] io scheduler deadline registered
[    0.054237] io scheduler cfq registered (default)
[    0.054247] io scheduler mq-deadline registered
[    0.054254] io scheduler kyber registered
[    0.058682] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.129355] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.132680] console [ttyS0] disabled
[    0.152951] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.733724] console [ttyS0] enabled
[    0.758791] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 37, base_baud = 1500000) is a U6_16550A
[    0.789306] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 38, base_baud = 1500000) is a U6_16550A
[    0.801927] libphy: Fixed MDIO Bus: probed
[    0.806630] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.812428] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.818194] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.824185] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
[    0.833759] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.839468] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.846703] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.852358] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.859584] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.864544] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.871513] libphy: stmmac: probed
[    0.876906] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.883444] ehci-platform: EHCI generic platform driver
[    0.889046] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.894675] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.902669] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.936395] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.943579] hub 1-0:1.0: USB hub found
[    0.947526] hub 1-0:1.0: 1 port detected
[    0.952023] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.958326] ohci-platform: OHCI generic platform driver
[    0.963870] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.970602] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.978582] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.051486] hub 2-0:1.0: USB hub found
[    1.055328] hub 2-0:1.0: 1 port detected
[    1.062974] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.072544] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.081561] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.088464] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.093007] i2c /dev entries driver
[    1.098034] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.107576] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.176422] sunxi-mmc 1c0f000.mmc: base:0xc4105000 irq:23
[    1.233973] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.242078] sunxi-mmc 1c10000.mmc: base:0xc4109000 irq:24
[    1.248566] usbcore: registered new interface driver usbhid
[    1.254142] usbhid: USB HID core driver
[    1.258764] mmc0: new high speed SD card at address b368
[    1.264739] mmcblk0: mmc0:b368 NCard 961 MiB 
[    1.271321] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.279371] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.285846]  mmcblk0: p1 p2
[    1.291918] NET: Registered protocol family 17
[    1.296633] Key type dns_resolver registered
[    1.301036] Registering SWP/SWPB emulation handler
[    1.312274] simple-framebuffer 43f80000.framebuffer: framebuffer at 0x43f80000, 0x7f800 bytes, mapped to 0xc4300000
[    1.322894] simple-framebuffer 43f80000.framebuffer: format=x8r8g8b8, mode=480x272x32, linelength=1920
[    1.335121] Console: switching to colour frame buffer device 60x34
[    1.343602] simple-framebuffer 43f80000.framebuffer: fb0: simplefb registered!
[    1.352188] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.363579] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.369425] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.378532] hub 3-0:1.0: USB hub found
[    1.382403] hub 3-0:1.0: 1 port detected
[    1.387690] using random self ethernet address
[    1.392182] using random host ethernet address
[    1.397858] usb0: HOST MAC de:3b:e4:4d:e7:20
[    1.402176] usb0: MAC 8e:59:5f:5d:d0:c1
[    1.406051] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.413634] g_cdc gadget: g_cdc ready
[    1.419885] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.429371] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:03:14 UTC (194)
[    1.437793] vcc5v0: disabling
[    1.440769] ALSA device list:
[    1.443733]   #0: V3s Audio Codec
[    1.449192] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.458670] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.497971] EXT4-fs (mmcblk0p2): recovery complete
[    1.502793] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.511022] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.519103] devtmpfs: mounted
[    1.523301] Freeing unused kernel memory: 1024K
[    1.569822] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (80, <SessEnd), retry #0, port1 00000100
[    1.583545] Starting init: /sbin/init exists but couldn't execute it (error -8)
[    1.592267] Starting init: /etc/init exists but couldn't execute it (error -13)
[    1.602589] Starting init: /bin/sh exists but couldn't execute it (error -5)
[    1.609790] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[    1.623947] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.16-licheepi-zero+ #2
[    1.631244] Hardware name: Allwinner sun8i Family
[    1.635983] [<c010e1ec>] (unwind_backtrace) from [<c010af9c>] (show_stack+0x10/0x14)
[    1.643729] [<c010af9c>] (show_stack) from [<c0652e90>] (dump_stack+0x90/0xa4)
[    1.650952] [<c0652e90>] (dump_stack) from [<c011b0bc>] (panic+0xf0/0x268)
[    1.657827] [<c011b0bc>] (panic) from [<c0665104>] (kernel_init+0x100/0x110)
[    1.664873] [<c0665104>] (kernel_init) from [<c0107358>] (ret_from_fork+0x14/0x3c)
[    1.672444] Rebooting in 5 seconds..

离线

#39 2020-04-30 09:17:18

拉轰的脚踏车
会员
注册时间: 2020-03-20
累计积分: 117

Re: Debian 9.9 (stretch) 文件系统制作

你的 rootfs 有问题, 也就是TF卡第二个分区,里面没有一个文件可以作为首进程启动:

[    1.583545] Starting init: /sbin/init exists but couldn't execute it (error -8)
[    1.592267] Starting init: /etc/init exists but couldn't execute it (error -13)
[    1.602589] Starting init: /bin/sh exists but couldn't execute it (error -5)
[    1.609790] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.

离线

#40 2020-04-30 09:33:15

zhang235hai
会员
注册时间: 2020-04-06
累计积分: 120

Re: Debian 9.9 (stretch) 文件系统制作

拉轰的脚踏车 说:

你的 rootfs 有问题, 也就是TF卡第二个分区,里面没有一个文件可以作为首进程启动:

[    1.583545] Starting init: /sbin/init exists but couldn't execute it (error -8)
[    1.592267] Starting init: /etc/init exists but couldn't execute it (error -13)
[    1.602589] Starting init: /bin/sh exists but couldn't execute it (error -5)
[    1.609790] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.

这种情况一般是哪个环节出问题呢?

离线

#41 2020-04-30 09:44:55

哇酷小二
管理员
注册时间: 2020-04-22
累计积分: 1,820

Re: Debian 9.9 (stretch) 文件系统制作

先检查这几个文件是否存在, 不过看log已经提示存在了。

然后用 ls -l检查有没有执行属性

如果都有的话, 看这几个文件是不是不完整,是不是arm linux 的二进制可执行文件。

离线

#42 2020-04-30 12:41:17

lghtjpu
会员
注册时间: 2020-02-23
累计积分: 20

Re: Debian 9.9 (stretch) 文件系统制作

想问下debian 和 ubuntu core哪个更好些呢,对硬件消耗以及软件源等。
之前一直用友善的板子,他们是ubunto core.
我想在A33上也试下一直这些系统

离线

#43 2020-04-30 14:36:27

zhang235hai
会员
注册时间: 2020-04-06
累计积分: 120

Re: Debian 9.9 (stretch) 文件系统制作

哇酷小二 说:

先检查这几个文件是否存在, 不过看log已经提示存在了。

然后用 ls -l检查有没有执行属性

如果都有的话, 看这几个文件是不是不完整,是不是arm linux 的二进制可执行文件。

我重新按照流程走了一遍
现在可以成功进入debian系统了
谢谢

离线

#44 2020-08-04 23:44:43

lignin
会员
注册时间: 2020-03-21
累计积分: 32

Re: Debian 9.9 (stretch) 文件系统制作

如果要编译应用程序或者驱动,要使用什么交叉编译链呢?难道只能在板子里依靠debian编译吗?

离线

#45 2020-09-19 10:48:18

sdxmps
会员
注册时间: 2020-09-19
累计积分: 13

Re: Debian 9.9 (stretch) 文件系统制作

不错不错啊啊

离线

#46 2020-10-06 19:54:51

达克罗德
会员
注册时间: 2018-04-10
累计积分: 958

Re: Debian 9.9 (stretch) 文件系统制作

###可以在这个时候, 安装任何东西###
LC_ALL=C LANGUAGE=C LANG=C chroot rootfs
这个怎么理解?直接敲apt-get?

离线

#47 2020-10-10 01:03:12

达克罗德
会员
注册时间: 2018-04-10
累计积分: 958

Re: Debian 9.9 (stretch) 文件系统制作

用本方法运行Debian10成功!软件比9要新些,谢谢楼主和周老师的帮助!

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB