查看: 5069|回复: 2

【BPI-M2 zero试用】自制纯净Debian系统

[复制链接]
  • TA的每日心情
    开心
    2024-1-16 17:48
  • 签到天数: 592 天

    连续签到: 1 天

    [LV.9]以坛为家II

    发表于 2018-3-18 23:08:38 | 显示全部楼层 |阅读模式
    分享到:
    本帖最后由 robe.zhang 于 2018-3-19 15:43 编辑

    【BPI-M2 zero试用】自制纯净Debian系统


    发帖背景:

    armbian 系统,5.36 版本,upgrade 之后,无法启动,系统上的文件被破坏了,以前的 ubuntu 也不稳定,不好用,当前没有稳定好用的系统。然后就自己动手,编译制作了一个纯净版 linux 系统,准备把这个当作一个小项目来搞,利用业余时间持续更新优化。
    目标系统信息:
    uboot:主线版本 2018.01
    kernel:主线版本 4.14.20
    debian:9,
    系统特点:
    • 稳定性还是相当厉害,很有保证。
    • 系统比较纯净,干干净净的,除了系统的基本组件,其他所有软件都需要自己安装。
    • 操作系统外围组件,python-gpio 这些东西一个没有,纯净系统,不要这些。
    • 硬件驱动全部支持,官方系统有的,这个系统也有,一个都不少。
    • 系统开发文件全部安装,对软件开发很有用的。
    • 现在存在的问题:后台信息容易往控制台上刷,这个问题,是为了调试内核,专门调出来的,稍后内核不再变动的时候关了,现在先开着,调试方便点。
    • 没联网的话,开机有几个网络服务不能启动,连上网就好了。
    ubuntu 大家都熟悉,Ubuntu 就是基于 debian 二次开发的;树莓派系统也是基于 debian 开发的;香蕉派 BPI-M2 zero 不能落下,也要跟上去,哈哈
    当前进度:
    uboot kernel 已经调通,文件系统也就绪了,sd 卡手动调出来了,现在已经可用,稍后完善后就可以打包,算是bate 版本吧。有兴趣的小伙伴在楼下留言可以内测,使用过程中碰到的系统问题告诉我,我准备花一个月时间,持续优化这个版本。
    优化的原则:
    系统的问题,优化,非系统问题,不关注,特别是树莓派移植的那些 gpio 库,这些东西就不关注了,集中精力搞一个纯净稳定好用的 debian 最小化系统。如果哪位有时间在这个基础上集成一些库,那就更好了,一起合作。

    下面贴上一些系统信息,今天全部重新编译的:
    uboot:
    1. U-Boot SPL 2018.01 (Mar 18 2018 - 07:16:07)
    2. DRAM: 512 MiB
    3. Trying to boot from MMC1
    4. BPI: skip sunxi_mmc_getcd pin 166(1)


    5. U-Boot 2018.01 (Mar 18 2018 - 07:16:07 -0400) Allwinner Technology

    6. CPU:   Allwinner H3 (SUN8I 1680)
    7. Model: Banana Pi BPI-M2-Zero
    8. DRAM:  512 MiB
    9. MMC:   SUNXI SD/MMC: 0
    10. BPI: skip sunxi_mmc_getcd pin 166(1)
    11. *** Warning - bad CRC, using default environment

    12. In:    serial
    13. Out:   serial
    14. Err:   serial
    15. Net:   No ethernet found.
    16. starting USB...
    复制代码
    kernel:
    1. ## Booting kernel from Legacy Image at 40008000 ...
    2.    Image Name:   Linux-4.14.20-BPI-Kernel
    3.    Image Type:   ARM Linux Kernel Image (uncompressed)
    4.    Data Size:    7104640 Bytes = 6.8 MiB
    5.    Load Address: 40008000
    6.    Entry Point:  40008000
    7.    Verifying Checksum ... OK
    8. ## Flattened Device Tree blob at 43000000
    9.    Booting using the fdt blob at 0x43000000
    10.    Loading Kernel Image ... OK
    11.    Loading Device Tree to 49ff5000, end 49fffade ... OK

    12. Starting kernel ...

    13. [    0.000000] Booting Linux on physical CPU 0x0
    14. [    0.000000] Linux version 4.14.20-BPI-Kernel (root@debian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18)) #4 SMP Sun Mar 18 10:38:25 EDT 2018
    15. [    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=50c5387d
    16. [    0.000000] CPU: div instructions available: patching division code
    17. [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    18. [    0.000000] OF: fdt: Machine model: Banana Pi BPI-M2-Zero
    19. [    0.000000] Memory policy: Data cache writealloc
    20. [    0.000000] Reserved memory: created CMA memory pool at 0x5c000000, size 64 MiB
    21. [    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
    22. [    0.000000] On node 0 totalpages: 131072
    23. [    0.000000] free_area_init_node: node 0, pgdat c0dd9d80, node_mem_map dbb59000
    24. [    0.000000]   Normal zone: 1152 pages used for memmap
    25. [    0.000000]   Normal zone: 0 pages reserved
    26. [    0.000000]   Normal zone: 131072 pages, LIFO batch:31
    27. [    0.000000] random: fast init done
    28. [    0.000000] percpu: Embedded 17 pages/cpu @dbafd000 s39884 r8192 d21556 u69632
    29. [    0.000000] pcpu-alloc: s39884 r8192 d21556 u69632 alloc=17*4096
    30. [    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
    31. [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920
    32. [    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait rootfstype=ext4 panic=10 consoleblank=0
    33. [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    34. [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    35. [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    36. [    0.000000] allocated 524288 bytes of page_ext
    37. [    0.000000] Memory: 439052K/524288K available (8192K kernel code, 949K rwdata, 2432K rodata, 1024K init, 346K bss, 19700K reserved, 65536K cma-reserved, 0K highmem)
    38. [    0.000000] Virtual kernel memory layout:
    39. [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    40. [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    41. [    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
    42. [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    43. [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    44. [    0.000000]     modules : 0xbf800000 - 0xbfe00000   (   6 MB)
    45. [    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
    46. [    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
    复制代码
    debian:
    1. [  OK  ] Started Getty on tty4.
    2. [  OK  ] Started Getty on tty6.
    3. [  OK  ] Started Getty on tty3.
    4. [  OK  ] Reached target Login Prompts.
    5. [  OK  ] Reached target Multi-User System.
    6. [  OK  ] Reached target Graphical Interface.
    7. [   11.926187] thermal thermal_zone0: failed to read out thermal zone (-110)
    8. [   12.143652] asoc-simple-card sound: i2s-hifi <-> 1c22800.i2s mapping ok
    9. [   12.364949] brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43430-sdio.bin for chip 0x00a9a6(43430) rev 0x000001
    10. [   12.396429] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.bin failed with error -2
    11. [   12.406225] brcmfmac mmc1:0001:1: Falling back to user helper

    12. Debian GNU/Linux 9 debian-robe ttyS0

    13. debian-robe login: [   13.446123] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
    14. [   14.459356] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
    复制代码
    关机信息:
    1. [  OK  ] Stopped target Timers.
    2. [  OK  ] Stopped Daily Cleanup of Temporary Directories.
    3. [  OK  ] Stopped Daily apt upgrade and clean activities.
    4. [  OK  ] Stopped target Sound Card.
    5. [  OK  ] Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
    6. [  OK  ] Reached target Unmou         Stopping Serial Getty on ttyS0...
    7.          Stopping Getty on tty1...
    8.          Stopping Getty on tty2...
    9.          Stopping Getty on tty5...
    10. [  OK  ] Stopped Daily apt download activities.
    11. [  OK  ] Stopped target System Time Synchronized.
    12.          Stopping Getty on tty4...
    13.          Stopping System Logging Service...
    14. [  OK  ] Stopped Regular background program processing daemon.
    15. [  OK  ] Stopped System Logging Service.
    16. [  OK  ] Stopped Serial Getty on ttyS0.
    17. [  OK  ] Stopped Getty on tty1.
    18. [  OK  ] Stopped Getty on tty5.
    19. [  OK  ] Stopped Getty on tty2.
    20. [  OK  ] Stopped Getty on tty4.
    21. [  OK  ] Stopped Getty on tty6.
    22. [  OK  ] Stopped Getty on tty3.
    23. [  OK  ] Removed slice system-getty.slice.
    24. [  OK  ] Removed slice system-serial\x2dgetty.slice.
    25.          Stopping Permit User Sessions...
    26. [  OK  ] Stopped Permit User Sessions.
    27. [  OK  ] Stopped target Network.
    28.          Stopping Raise network interfaces...
    29. [  OK  ] Stopped target Remote File Systems.
    30. [  OK  ] Stopped target Basic System.
    31. [  OK  ] Stopped target Slices.
    32. [  OK  ] Stopped target System Initialization.
    33. [  OK  ] Stopped target Swap.
    34. [  OK  ] Stopped target Encrypted Volumes.
    35.          Stopping Load/Save Random Seed...
    36. [  OK  ] Stopped target Sockets.
    37. [  OK  ] Closed Syslog Socket.
    38. [  OK  ] Stopped target Paths.
    39. [  OK  ] Stopped Dispatch Password Requests to Console Directory Watch.
    40. [  OK  ] Stopped Forward Password Requests to Wall Directory Watch.
    41. [  OK  ] Stopped Load/Save Random Seed.
    42. [  OK  ] Stopped Raise network interfaces.
    43. [  OK  ] Stopped target Local File Systems.
    44. [  OK  ] Stopped target Local File Systems (Pre).
    45. [  OK  ] Stopped Create Static Device Nodes in /dev.
    46. [  OK  ] Stopped Remount Root and Kernel File Systems.
    47. [  OK  ] Stopped Apply Kernel Variables.
    48. [  OK  ] Stopped Load Kernel Modules.
    49. [  OK  ] Reached target Shutdown.
    50. [  208.624129] systemd-shutdow: 21 output lines suppressed due to ratelimiting
    51. [  208.717936] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
    52. [  208.746308] systemd-journald[146]: Received SIGTERM from PID 1 (systemd-shutdow).
    53. [  208.780972] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
    54. [  208.821736] systemd-shutdown[1]: Unmounting file systems.
    55. [  208.828143] systemd-shutdown[1]: Remounting '/' read-only with options 'data=ordered'.
    56. [  208.847389] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
    57. [  208.853442] systemd-shutdown[1]: Remounting '/' read-only with options 'data=ordered'.
    58. [  208.861699] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
    59. [  208.872776] systemd-shutdown[1]: All filesystems unmounted.
    60. [  208.878497] systemd-shutdown[1]: Deactivating swaps.
    61. [  208.883708] systemd-shutdown[1]: All swaps deactivated.
    62. [  208.889036] systemd-shutdown[1]: Detaching loop devices.
    63. [  208.897948] systemd-shutdown[1]: All loop devices detached.
    64. [  208.909794] reboot: System halted
    复制代码
    等系统优化后,这些系统信息都要关了,不要了,使用起来就清静了。

    < 怎么艾特这个版主 sinovoip,我要申请精华和置顶,行不行,这个可是个优质项目,嘿嘿 >

    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    2022-4-7 16:37
  • 签到天数: 736 天

    连续签到: 1 天

    [LV.9]以坛为家II

    发表于 2018-3-19 21:27:43 | 显示全部楼层
    这个可以有,我的BPI M2 Zero也是upgrade 之后死翘翘
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2024-1-16 17:48
  • 签到天数: 592 天

    连续签到: 1 天

    [LV.9]以坛为家II

     楼主| 发表于 2018-3-20 18:02:24 | 显示全部楼层
    本帖最后由 robe.zhang 于 2018-3-24 18:28 编辑
    mikeliujia 发表于 2018-3-19 21:27
    这个可以有,我的BPI M2 Zero也是upgrade 之后死翘翘

    好的,预计明天发布 测试版,发布之后版本更新也是个问题,还在构想,

    sorry,晚了三四天才发布,现在开始公测了,看看有关系统的说明,有兴趣一起测试:【BPI-M2 zero试用】纯净Debian系统公测
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /2 下一条



    手机版|小黑屋|与非网

    GMT+8, 2024-4-18 17:27 , Processed in 0.134410 second(s), 22 queries , MemCache On.

    ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

    苏公网安备 32059002001037号

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.