嵌入式工程师关于linux的学习总结

嵌入式工程师关于linux的学习总结,第1张

  问题1:linux系统的定制和安装

  STep 1> IBM PC按F12,来选择从CD-ROM起动;

  step 2> Fedora

  问题2:基本命令

  1> shutdown -h now 在关闭完成后停止(Halt)系统

  shutdown -r now 在关闭完成后重启动(Reoot)系统

  2> uname 用途是:print system informaTION

  -a, --all

  print all informaTIon, in the following order

  -s, --kernel-nAME

  print the kernel name

  -n, --nodename

  print the network node hostname

  -r, --kernel-release

  print the kernel release

  -v, --kernel-version

  print the kernel version

  -m, --machine

  print the machine hardware name

  -p, --processor

  print the processor type

  -i, --hardware-platform

  print the hardware platform

  -o, --operaTIng-System

  print the operaTIng system

  --help

  display this help and exit

  --version

  output version information and exit

  3> vi

  其中wq!强制修改

  4> clear

  5> ifconfig

  6> reboot

  7> man

  8> startx

  9> fdisk -l

  10> redhat-config-xfree86

  11> mkbootdisk

  12> cp

  13> mkdir

  14> rm -rf

  15> which

  16> pwd --- print name of current/working directory

  17> find

  18> grep

  问题3:内核的重新编译,目的是支持NTFS系统和支持USB接口的keyboard mouse

  step 1> 必须进入到这个目录 /usr/src/linux-2.4

  step 2> make menuconfig 选择NTFS支持和选择USB keybOArd mouse支持,多保存几次

  step 3> make dep

  step 4> make clean

  step 5> make bzImage

  step 6> make modules

  step 7> make modules_install

  step 8> make install

  如果想将NTFS文件系统改为可写支持,在make menuconfig中有2个选项

  NTFS file system supPort (read only)

  NTFS write support (DANGEROUS)

  问题4:/boot/grub/grub.conf中有从什么系统起动的选择

  问题5:怎么mount/umount NTFS系统

  step 1> 先通过硬件浏览器来看机器硬盘的DEVICE名,for example,hda5,hda6

  step 2> 先在 /mnt目录下用mkdir建立ntfs_hda5 ntfs_hda6

  step 3> 挂载

  mount -t ntfs -o utf8 /dev/hda6 /mnt/ntfs_hda6

  mount -t ntfs -o iocharset=cp936 /dev/hda6 /mnt/ntfs_hda6

  卸载

  umount /mnt/ntfs_hda6

  step 4> 自动mount ntfs文件系统的文件是/etc/fstab

  问题6:怎么测试声卡安装?

  运行 redhat-config-soundcard

  位置在 /usr/bin/redhat-config-soundcard

  问题7:这台IBM PC机器显卡驱动安装,只能支持256色,无法支持16bits和24bits

  在BIOS设置中Video Setup中将Shared System Memory改为8192K,原因是这台IBM PC用的是集成显卡,它需要和 *** 作系统共用memory。

  redhat-config-xfree86,在/etc/X11目录下产生XF86Config,这个文件很重要,可认真看下。

  问题8:网络配置举例

  ifconfig ----- configure a network interface

  ifconfig eth0 add 192.168.2.28

  ping 192.168.2.29

  mount 192.168.2.29:/opt/STM/ST40Linux-1.0/devkit/sh4/target /mnt/cdrom

  ifconfig eth0 down

  问题9:打包/解包

  打包

  tar cdvf [目标] [源]

  "c" create

  解包

  tar zxvf RealPlay9.tar.gz

  "x" extract

  Z用compress程序来压缩和解压

  z用zip程序来压缩和解压

  问题10:用Mozilla浏览器上网

  当网卡驱动安装完毕后,在Mozilla中 Edit->Preferences->Advanced->Proxies中设置

  HTTPProxy: lps1.hkg.st.com Port 8080

  

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/dianzi/2714124.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-08-17
下一篇 2022-08-17

发表评论

登录后才能评论

评论列表(0条)

保存