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)
离线
一直想跑 debian, 但是没有动手, 试一试楼主的流程, 顺便围观。
离线
楼主的日志:
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
看起来并没有奔溃?
离线
崩溃是别的问题导致的,因为没有挂boot,所以没有更新到zImage
离线
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#
请教楼主, 这个错误怎么解决?
离线
这是在v3s上跑?还是在f1c100s上跑?
离线
4. 解压
请教楼主, 这个错误怎么解决?
包没下载完,就开始解压了
离线
这是在v3s上跑?还是在f1c100s上跑?
f1c100s可能不行,内存太少。
离线
这是在v3s上跑?还是在f1c100s上跑?
armhf,armv7指令的,我用于S3但不限于S3
离线
我怎么感觉是 /debootstrap/debootstrap 这个路径错误?
离线
我在蚂蚁矿机主控板上跑起来了,没加--verbose。使用内置工具进行第二阶段定制。
离线
我在蚂蚁矿机主控板上跑起来了,没加--verbose。使用内置工具进行第二阶段定制。
离线
我在蚂蚁矿机主控板上跑起来了,没加--verbose。使用内置工具进行第二阶段定制。
verbose就是输出信息而已
离线
我也在矿渣上跑起来了,不过没用qemu装软件,而是直接在板上操作,似乎可以正常工作。。尝试用mksquashfs压缩了一下,可以放到256M的NAND里,不过还没试过直接用squashfs的速度如何
离线
请教各位, 这样制作的 debian 只是一个根文件系统吗? 比起其他的系统有什么优势?
离线
这样做出来的是一个最小版本的Debian,好处是可以用debian的包管理系统,坏处是资源占用比buildroot多,体积大
离线
按楼主的教程, 又失败一次,
还是卡在
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
仍然一样, 换一台服务器继续,
还是用楼主提供的服务器地址, 就正常了。
看来服务器这个坑还挺大的.
离线
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 都是和楼上一样的错误.
离线
真不错,学习。
离线
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 跑起来了!
离线
按楼主的教程, 又失败一次,
还是卡在
3I: 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
仍然一样, 换一台服务器继续,
还是用楼主提供的服务器地址, 就正常了。
看来服务器这个坑还挺大的.
出现错误继续之前的一步直到没错就行,不用换服务器,偶尔出错而已
离线
请教各位, 这样制作的 debian 只是一个根文件系统吗? 比起其他的系统有什么优势?
兼容性好,可以apt-get不用啥都diy
比如蓝牙4就得9以上的版本了,当然自己编译一定行就是麻烦点
离线
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...
安装的包挺全的。
离线
apt-get install gdm3 gnome
想把 X 桌面弄上去, 为什么要接近3G的空间啊, 哭.
请教给位大神, 有没有精简的桌面呢?
离线
http://zero.lichee.pro/%E8%B4%A1%E7%8C%AE/article%201.html
rootfs-minX.tar.gz debian(包含桌面系统)
这个带桌面的 debian 压缩后才 200M 左右, 怎么做到的?
离线
谢谢分享,我可以打包出可启动的debian。
不过我登录名和密码怎么输入都不正确。
离线
谢谢分享,我可以打包出可启动的debian。
不过我登录名和密码怎么输入都不正确。
请教如何产生可以启动到 debian桌面?
离线
请教如何产生可以启动到 debian桌面?
我是没安装桌面的, 你要桌面的话需要安装桌面相关的:看看的帖子有这个, apt-get install gdm3 gnome 不过我没验证过,我连屏幕都没有。
离线
密码可以重置的,在电脑 chroot 之后输入 passwd root,然后输入两次密码就可以了。
晕哥, 我有改过密码, 还是有问题。
我新增了一个用户 mike, 用 mike 登录可以进入, つ﹏⊂
离线
测试成功了,谢谢楼主.
离线
现在可以用qemu-debootstrap代替debootstrap,可以省略--foreign和--second-stage,自动完成安装。
离线
现在可以用qemu-debootstrap代替debootstrap,可以省略--foreign和--second-stage,自动完成安装。
伸手党厚颜无耻在线求教程或链接.
离线
伸手党厚颜无耻在线求教程或链接.
QEMU/debootstrap approach
其他发行版同理,只是将镜像地址换一下。
离线
那奇怪了, 我可以改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..
离线
你的 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.
离线
你的 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.
这种情况一般是哪个环节出问题呢?
离线
想问下debian 和 ubuntu core哪个更好些呢,对硬件消耗以及软件源等。
之前一直用友善的板子,他们是ubunto core.
我想在A33上也试下一直这些系统
离线
先检查这几个文件是否存在, 不过看log已经提示存在了。
然后用 ls -l检查有没有执行属性
如果都有的话, 看这几个文件是不是不完整,是不是arm linux 的二进制可执行文件。
我重新按照流程走了一遍
现在可以成功进入debian系统了
谢谢
离线
如果要编译应用程序或者驱动,要使用什么交叉编译链呢?难道只能在板子里依靠debian编译吗?
离线
不错不错啊啊
离线
###可以在这个时候, 安装任何东西###
LC_ALL=C LANGUAGE=C LANG=C chroot rootfs
这个怎么理解?直接敲apt-get?
离线
用本方法运行Debian10成功!软件比9要新些,谢谢楼主和周老师的帮助!
离线
kernelpanic 说:谢谢分享,我可以打包出可启动的debian。
不过我登录名和密码怎么输入都不正确。
密码可以重置的,在电脑 chroot 之后输入 passwd root,然后输入两次密码就可以了。
怎么才能进入chroot 更改密码啊,本人小白一枚,能讲详细点吗
离线
哇酷小二 说:先检查这几个文件是否存在, 不过看log已经提示存在了。
然后用 ls -l检查有没有执行属性
如果都有的话, 看这几个文件是不是不完整,是不是arm linux 的二进制可执行文件。
我重新按照流程走了一遍
现在可以成功进入debian系统了
谢谢
登录账号和密码是什么啊,我到这一部就焖圈啦
离线
晕哥 说:kernelpanic 说:谢谢分享,我可以打包出可启动的debian。
不过我登录名和密码怎么输入都不正确。
密码可以重置的,在电脑 chroot 之后输入 passwd root,然后输入两次密码就可以了。
怎么才能进入chroot 更改密码啊,本人小白一枚,能讲详细点吗
LC_ALL=C LANGUAGE=C LANG=C chroot rootfs 后就进入了你制作的文件系统了,你要做什么更改就在当前系统下更改就行了。操作完后exit 就退出制作系统,回到电脑系统。
离线
Welcome to Debian GNU/Linux 9 (stretch)!
[ 3.379685] systemd[1]: Set hostname to <navi>.
[ 3.410782] random: systemd: uninitialized urandom read (16 bytes read)
[ 3.560068] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read)
[ 4.233441] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ OK ] Started Forward Password Requests to Wall Directory Watch.
[ 4.268663] systemd[1]: Listening on udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ 4.298713] systemd[1]: Listening on Syslog Socket.
[ OK ] Listening on Syslog Socket.
[ 4.328866] systemd[1]: Created slice System Slice.
[ OK ] Created slice System Slice.
[ 4.358784] systemd[1]: Reached target Slices.
[ OK ] Reached target Slices.
[ 4.391141] systemd[1]: Mounting Debug File System...
Mounting Debug File System...
[ 4.401923] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ OK ] Listening on Journal Socket (/dev/log).
[ OK ] Listening on udev Kernel Socket.
[ OK ] Created slice system-getty.slice.
[ OK ] Listening on Journal Socket.
Starting Remount Root and Kernel File Systems...
Starting Load Kernel Modules...
[ OK ] Reached target Remote File Systems.
Starting Create Static Device Nodes in /dev...
[ 4.437177] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 4.661417] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 4.673391] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module net-pf-16-proto-9, throttling...
[ 9.447762] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 9.505690] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 9.517600] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 14.567783] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 14.578804] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 14.600775] systemd[1]: Starting Journal Service...
Starting Journal Service...
[ 14.648864] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ OK ] Started Dispatch Password Requests to Console Directory Watch.
[ 14.708418] systemd[1]: Reached target Paths.
[ OK ] Reached target Paths.
[ 14.718599] systemd[1]: Reached target Encrypted Volumes.
[ OK ] Reached target Encrypted Volumes.
[ 14.738832] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ 14.778379] systemd[1]: Reached target Sockets.
[ OK ] Reached target Sockets.
[ 14.788568] systemd[1]: Reached target Swap.
[ OK ] Reached target Swap.
[ 14.808933] systemd[1]: Started Journal Service.
[ OK ] Started Journal Service.
[ 14.855586] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[FAILED] Failed to mount Debug File System.
See 'systemctl status sys-kernel-debug.mount' for details.
[ OK ] Started Remount Root and Kernel File Systems.
[ OK ] Started Load Kernel Modules.
[FAILED] Failed to start Create Static Device Nodes in /dev.
See 'systemctl status systemd-tmpfiles-setup-dev.service' for details.
Starting udev Kernel Device Manager...
Mounting Configuration File System...
Starting Apply Kernel Variables...
Starting udev Coldplug all Devices...
Starting Load/Save Random Seed...
[ 19.927752] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ OK [ 20.286350] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
] Reached target Local File Systems (Pre).
[ OK ] Reached target Local File Systems.
Starting Flush Journal to Persistent Storage...
[ 20.302276] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ OK ] Started Apply Kernel Variables.
Starting Raise network interfaces...
[ 20.375160] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ OK ] Started udev Kernel Device Manager.
[ OK ] Started Load/Save Random Seed.
[ 20.469626] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 25.367771] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 25.378795] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[FAILED] Failed to start udev Coldplug all Devices.
See 'systemctl status systemd-udev-trigger.service' for details.
[FAILED] Failed to mount Configuration File System.
See 'systemctl status sys-kernel-config.mount' for details.
[FAILED] Failed to start Flush Journal to Persistent Storage.
See 'systemctl status systemd-journal-flush.service' for details[ 25.391279] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
.
Starting Create Volatile Files and Directories...
[ 25.549471] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 25.606717] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[* ] (1 of 3) A start job is running for鈥 and Directories (26s / no limit)[ 30.567756] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 30.669978] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ *** ] (1 of 3) A start job is running for鈥 and Directories (31s / no limit)[ 30.681792] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[FAILED] Failed to start Create Volatile Files and Directories.
See 'systemctl status systemd-tmpfiles-setup.service' for details.
[ 35.687768] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
Starting Update UTMP about System Boot/Shutdown...
Starting Network Time Synchronization...
[ 35.758219] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ OK ] Started Network Time Synchronization.
[ OK ] Reached target System Time Synchronized.
[ 35.841348] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module net-pf-16-proto-9, throttling...
[FAILED] Failed to start Raise network interfaces.
See 'systemctl status networking.service' for details.
[ OK ] Reached target Network.
[ 40.807756] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 40.903979] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Reached target System Initialization.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Reached target Basic System.
[ OK ] Started Regular background program processing daemon.
Starting Permit User Sessions...
[ OK ] Started Daily apt download activities.
[ OK ] Started Daily apt upgrade and clean activities.
[ OK ] Reached target Timers.
Starting getty on tty2-tty6 if dbus and logind are not available...
[ 45.927766] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
Starting System Logging Service...
[ OK ] Started Permit User Sessions.
[ OK ] Started Getty on tty1.
[ OK ] Started System Logging Service.
[ 46.336590] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 50.407868] random: crng init done
[ 50.422224] random: 7 urandom warning(s) missed due to ratelimiting
[FAILED] Failed to start getty on tty2-tty6 鈥bus and logind are not available.
See 'systemctl status getty-static.service' for details.
[ 51.367754] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[** ] A start job is running for dev-ttyS0.device (52s / 1min 30s)[ 52.467339] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ OK ] Stopped Getty on tty1.
[ OK ] Started Getty on tty1.
[*** ] A start job is running for dev-ttyS0.device (59s / 1min 30s)[ 57.527812] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[*** ] A start job is running for dev-ttyS0.device (1min 4s / 1min 30s)[ 63.682044] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ OK ] Stopped Getty on tty1.
[ OK ] Started Getty on tty1.
[** ] A start job is running for dev-ttyS0.device (1min 10s / 1min 30s)[ 68.727764] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ *** ] A start job is running for dev-ttyS0.device (1min 15s / 1min 30s)[ 74.862410] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ OK ] Stopped Getty on tty1.
[ OK ] Started Getty on tty1.
[** ] A start job is running for dev-ttyS0.device (1min 21s / 1min 30s)[ 79.927764] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ *** ] A start job is running for dev-ttyS0.device (1min 26s / 1min 30s)[ 86.083366] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ OK ] Stopped Getty on tty1.
[ OK ] Started Getty on tty1.
[ TIME ] Timed out waiting for device dev-ttyS0.device.
[DEPEND] Dependency failed for Serial Getty on ttyS0.
[ OK ] Reached target Login Prompts.
[ OK ] Reached target Multi-User System.
[ OK ] Reached target Graphical Interface.
Starting Update UTMP about System Runlevel Changes...
[ 91.127948] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 94.528967] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[*** ] A start job is running for Update U鈥vel Changes (1min 35s / no limit)[ 97.237271] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ OK ] Started Update UTMP about System Runlevel Changes.
[ 99.607806] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 99.705633] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 104.727763] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 104.850806] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 109.927776] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 110.065452] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 115.127775] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 115.268113] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 120.327831] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 120.450201] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 125.527764] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 125.664529] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 130.727755] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 130.865998] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 135.927761] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 136.063360] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 141.127775] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 141.262773] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 146.327766] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 146.477485] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 151.527786] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 151.665469] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 156.727762] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 156.900918] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 161.927761] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 162.077330] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 167.127775] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 167.265164] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 172.327759] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 172.465385] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 177.527758] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 177.664343] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 182.727763] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
[ 182.879076] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
[ 187.927768] request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
出现这个错误,然后一直启动不了。
有没有人遇到过呀!!
离线
qemu-debootstrap是一个debootstrap的辅助脚本, 可以简化操作. 拷贝了几条关键内容:
eval run debootstrap --arch "$deb_arch" --foreign $opts $args
mkdir -p "$target/usr/bin"
cp $(which "qemu-$qemu_arch-static") "$target/usr/bin"
run chroot "$target" /debootstrap/debootstrap --second-stage
看了下标准安装的strech占用ram很小:
free -m
total used free shared buff/cache available
Mem: 233 15 189 1 27 207
Swap: 0 0 0
离线
U-Boot SPL 2017.01-rc2 (Nov 15 2021 - 22:09:14)
DRAM: 64 MiB
Trying to boot from MMC1
U-Boot 2017.01-rc2 (Nov 15 2021 - 22:09:14 -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
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
U-Boot 2017.01-rc2 (Nov 15 2021 - 22:09:14 -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
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Net: No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot: 2 1 0
reading zImage
4544624 bytes read in 231 ms (18.8 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
13141 bytes read in 26 ms (493.2 KiB/s)
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Device Tree to 42df9000, end 42dff354 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.10.0-licheepi-zero (shumei@ubuntu) (arm-linux-gnueabihf-gcc (Linaro GCC 6.3-2017.02) 6.3.1 20170109, GNU ld (Linaro_Binutils-2017.02) 2.27.0.20161019) #20 SMP Mon Nov 15 19:27:52 PST 2021
[ 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] Zone ranges:
[ 0.000000] Normal [mem 0x0000000040000000-0x0000000043ffffff]
[ 0.000000] HighMem empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000040000000-0x0000000043ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x0000000043ffffff]
[ 0.000000] percpu: Embedded 15 pages/cpu s30924 r8192 d22324 u61440
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw vt.global_cursor_default=0
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 53624K/65536K available (7168K kernel code, 693K rwdata, 1784K rodata, 1024K init, 261K bss, 11912K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 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] random: get_random_bytes called from start_kernel+0x328/0x4bc with crng_init=0
[ 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.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000023] Switching to timer-based delay loop, resolution 41ns
[ 0.000260] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000548] Console: colour dummy device 80x30
[ 0.000616] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000639] pid_max: default: 32768 minimum: 301
[ 0.000814] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.000834] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.001727] CPU: Testing write buffer coherency: ok
[ 0.002164] /cpus/cpu@0 missing clock-frequency property
[ 0.002196] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.003008] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.003247] rcu: Hierarchical SRCU implementation.
[ 0.003806] smp: Bringing up secondary CPUs ...
[ 0.003834] smp: Brought up 1 node, 1 CPU
[ 0.003847] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.003856] CPU: All CPU(s) started in SVC mode.
[ 0.004536] devtmpfs: initialized
[ 0.008293] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.008670] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.008706] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.008946] pinctrl core: initialized pinctrl subsystem
[ 0.010255] NET: Registered protocol family 16
[ 0.010793] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.012011] thermal_sys: Registered thermal governor 'step_wise'
[ 0.012380] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.012406] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.033755] SCSI subsystem initialized
[ 0.033949] usbcore: registered new interface driver usbfs
[ 0.034022] usbcore: registered new interface driver hub
[ 0.034143] usbcore: registered new device driver usb
[ 0.034379] mc: Linux media interface: v0.10
[ 0.034422] videodev: Linux video capture interface: v2.00
[ 0.034690] Advanced Linux Sound Architecture Driver Initialized.
[ 0.036024] clocksource: Switched to clocksource arch_sys_counter
[ 0.048278] NET: Registered protocol family 2
[ 0.049133] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.049184] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.049213] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.049237] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.049391] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.049447] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.049732] NET: Registered protocol family 1
[ 0.051389] Initialise system trusted keyrings
[ 0.051779] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.138621] Key type asymmetric registered
[ 0.138658] Asymmetric key parser 'x509' registered
[ 0.138758] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 0.138776] io scheduler mq-deadline registered
[ 0.138787] io scheduler kyber registered
[ 0.139758] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[ 0.143695] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.214063] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.216777] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pb not found, using dummy regulator
[ 0.218037] printk: console [ttyS0] disabled
[ 0.238366] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 44, base_baud = 1500000) is a U6_16550A
[ 0.791207] printk: console [ttyS0] enabled
[ 0.800832] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pc not found, using dummy regulator
[ 0.811034] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.817696] ehci-platform: EHCI generic platform driver
[ 0.823272] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 0.828961] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 0.836926] ehci-platform 1c1a000.usb: irq 34, io mem 0x01c1a000
[ 0.866009] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 0.873278] hub 1-0:1.0: USB hub found
[ 0.877244] hub 1-0:1.0: 1 port detected
[ 0.881883] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.888225] ohci-platform: OHCI generic platform driver
[ 0.893779] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 0.900527] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 0.908501] ohci-platform 1c1a400.usb: irq 35, io mem 0x01c1a400
[ 0.981140] hub 2-0:1.0: USB hub found
[ 0.984991] hub 2-0:1.0: 1 port detected
[ 0.992360] usbcore: registered new interface driver usb-storage
[ 0.999731] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 1.009678] sun6i-rtc 1c20400.rtc: registered as rtc0
[ 1.014798] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T00:02:05 UTC (125)
[ 1.022985] sun6i-rtc 1c20400.rtc: RTC enabled
[ 1.027699] i2c /dev entries driver
[ 1.032733] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pe not found, using dummy regulator
[ 1.043575] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.052592] sun4i-ss 1c15000.crypto: Die ID 7
[ 1.057492] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[ 1.067617] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pg not found, using dummy regulator
[ 1.080941] usbcore: registered new interface driver usbhid
[ 1.086665] usbhid: USB HID core driver
[ 1.090694] fb_st7789v spi0.0: fbtft_property_value: buswidth = 8
[ 1.096860] fb_st7789v spi0.0: fbtft_property_value: debug = 0
[ 1.102692] fb_st7789v spi0.0: fbtft_property_value: rotate = 270
[ 1.108806] fb_st7789v spi0.0: fbtft_property_value: fps = 60
[ 1.126129] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.133444] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[ 1.175712] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.185664] mmc0: new high speed SDHC card at address 59b4
[ 1.192312] mmcblk0: mmc0:59b4 SDU1 29.5 GiB
[ 1.200125] mmcblk0: p1 p2
[ 1.649028] random: fast init done
[ 1.674127] Console: switching to colour frame buffer device 40x30
[ 1.681142] graphics fb0: fb_st7789v frame buffer, 320x240, 150 KiB video memory, 4 KiB buffer memory, fps=100, spi0.0 at 96 MHz
[ 1.699607] Initializing XFRM netlink socket
[ 1.703933] NET: Registered protocol family 17
[ 1.726126] Registering SWP/SWPB emulation handler
[ 1.731037] Loading compiled-in X.509 certificates
[ 1.744658] usb_phy_generic usb_phy_generic.1.auto: supply vcc not found, using dummy regulator
[ 1.754842] musb-hdrc musb-hdrc.2.auto: MUSB HDRC host driver
[ 1.760763] musb-hdrc musb-hdrc.2.auto: new USB bus registered, assigned bus number 3
[ 1.769862] hub 3-0:1.0: USB hub found
[ 1.773735] hub 3-0:1.0: 1 port detected
[ 1.779500] ALSA device list:
[ 1.782497] No soundcards found.
[ 1.793093] List of all partitions:
[ 1.796762] b300 30924800 mmcblk0
[ 1.796770] driver: mmcblk
[ 1.803573] b301 32768 mmcblk0p1 fb599233-01
[ 1.803577]
[ 1.810415] b302 30891008 mmcblk0p2 fb599233-02
[ 1.810418]
[ 1.817230] No filesystem could mount root, tried:
[ 1.817234] ext3
[ 1.822105] ext2
[ 1.824028] ext4
[ 1.825966] vfat
[ 1.827889]
[ 1.831303] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[ 1.839736] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.10.0-licheepi-zero #20
[ 1.846948] Hardware name: Allwinner sun8i Family
[ 1.851686] [<c010d92c>] (unwind_backtrace) from [<c010a348>] (show_stack+0x10/0x14)
[ 1.859431] [<c010a348>] (show_stack) from [<c074df90>] (dump_stack+0x98/0xac)
[ 1.866651] [<c074df90>] (dump_stack) from [<c074c494>] (panic+0x110/0x2fc)
[ 1.873613] [<c074c494>] (panic) from [<c0a01488>] (mount_block_root+0x308/0x330)
[ 1.881093] [<c0a01488>] (mount_block_root) from [<c0a01678>] (prepare_namespace+0x150/0x18c)
[ 1.889613] [<c0a01678>] (prepare_namespace) from [<c075044c>] (kernel_init+0x8/0x118)
[ 1.897526] [<c075044c>] (kernel_init) from [<c0100148>] (ret_from_fork+0x14/0x2c)
[ 1.905086] Exception stack(0xc0c3bfb0 to 0xc0c3bff8)
[ 1.910135] bfa0: 00000000 00000000 00000000 00000000
[ 1.918305] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.926473] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 1.933095] Rebooting in 5 seconds..
请问晕哥,出现这个是什么情况,不断重启,我只替换了内存卡第二分区的全部文件
离线
离线
@树莓学LINUX
[ 1.817230] No filesystem could mount root, tried:
[ 1.817234] ext3
[ 1.822105] ext2
[ 1.824028] ext4
[ 1.825966] vfat根文件系统可能被你复制粘贴出问题了
谢谢回复,我才接触linux没多久,我的u-boot,内核都是用的是官网的,内核版本为linux5.1;仅仅改变第二分区的文件系统出现这样的错误,我这样做可以吗?
如果不可以,u-boot或者内核有需要修改的地方吗?
离线
好经验,谢谢分享。
离线
离线
我根据提示进行操作时,卡在了1. debootstrap,在执行:
debootstrap --foreign --verbose --arch=armhf stretch rootfs http://ftp2.cn.debian.org/debian
命令的时候出现:
E: Failed getting release file http://ftp2.cn.debian.org/debian/dists/stretch/Release
可能我错过了什么,有大佬知道这是怎么回事吗
离线
之前用busybox,确实没有这种方式好
离线
@晕哥
我Ubuntu16.04显示这个怎么回事?
root@ubuntu:/home/xiaoci/rootfs# debootstrap --foreign --verbose --arch=armhf stretch rootfs http://ftp.de.debian.org/debian
I: Retrieving InRelease
I: Retrieving Release
E: Failed getting release file http://ftp.de.debian.org/debian/dists/stretch/Release
离线
@晕哥
rootfs
debian9.9.rootfs.gz 打包完了, 怎么打成img? 我按照网上找的教程打包, phoenixsuit 说固件文件版本太低, 格式被破坏
或者怎么直接刷到rootfs中, 我现在的系统是buildroot, rootfs是1G
离线
@晕哥
rootfs
debian9.9.rootfs.gz 打包完了, 怎么打成img? 我按照网上找的教程打包, phoenixsuit 说固件文件版本太低, 格式被破坏或者怎么直接刷到rootfs中, 我现在的系统是buildroot, rootfs是1G
这个只是文件系统,做成原来打包方式里面的根文件系统格式,原来是squashfs就得是squashfs,原来是ext4就得打包成ext4。
然后再用原来的打包方式打包。
离线