嵌入式linux更改root配置,Buildroot系统配置

系统配置

System configuration --->

Root FS skeleton (default target skeleton) --->

(mini437x) System hostname

(Welcome to Mini437x) System banner

Passwords encoding (md5) --->

Init system (systemV) --->

/dev management (Dynamic using devtmpfs + mdev) --->

(system/device_table.txt) Path to the permission tables

[ ] support extended attributes in device tables

[ ] Use symlinks to /usr for /bin, /sbin and /lib

[*] Enable root login with password

() Root password

/bin/sh (bash) --->

[*] Run a getty (login prompt) after boot --->

[*] remount root filesystem read-write during boot

(eth0) Network interface to configure through DHCP

[*] Purge unwanted locales

(C en_US) Locales to keep

() Generate locale data

[ ] Enable Native Language Support (NLS)

-*- Install timezone info

(default) timezone list

(Etc/UTC) default local time

() Path to the users tables

(board/mini437x/rootfs-overlay) Root filesystem overlay directories

(board/mini437x/post-build.sh) Custom scripts to run before creating filesystem images

() Custom scripts to run inside the fakeroot environment

(board/mini437x/post-image.sh) Custom scripts to run after creating filesystem images

() Extra arguments passed to custom scripts

配置dev管理方式

/dev management (Dynamic using devtmpfs + mdev) --->

配置为动态使用devtmpfs + mdev

配置登陆信息

(mini437x) System hostname

设置主机名,作用是,在一个局域网中,每台机器都有一个主机名,用于主机与主机之间的便于区分,就可以为每台机器设置主机名,以便于以容易记忆的方法来相互访问。

(Welcome to Mini437x) System banner

登陆界面前的欢迎信息!

Passwords encoding (md5) --->

密码的加密方式!

[*] Enable root login with password

是否启用root用户并用密码登陆?

() Root password

设置root密码,这里设置的是空,大家可以根据自己需求设定!

配置登陆串口

[*] Run a getty (login prompt) after boot --->

--- Run a getty (login prompt) after boot

(ttyS0) TTY port

Baudrate (keep kernel default) --->

(vt100) TERM environment variable

() other options to pass to getty

1.TTY port指的是串口号,这个要与内核中的配置一致!

2.Baudrate (keep kernel default)这个保持默认即可!

3.(vt100) TERM environment variable终端环境变量,VT100是一个终端类型定义,VT100控制码是用来在终端扩展显示的代码。默认即可!

其它配置

(board/mini437x/rootfs-overlay) Root filesystem overlay directories

根文件系统目录覆盖,主要是添加一些自己的bin文件,库,以及一些配置文件,其中board/mini437x/rootfs-overlay 是根文件系统目录覆盖文件的所在位置

(board/mini437x/post-build.sh) Custom scripts to run before creating filesystem images

在创建文件系统映像之前运行的自定义脚本,拷贝一些必须要的文件到目录

()Custom scripts to run inside the fakeroot environment

(board/mini437x/post-image.sh) Custom scripts to run after creating filesystem images

创建文件系统映像后运行的自定义脚本,主要是拷贝一些文件,并按照自己的分区格式进行分区格式化!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值