Created
May 17, 2012 08:45
-
-
Save jinleileiking/2717471 to your computer and use it in GitHub Desktop.
Linux Commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
交叉编译configure | |
CC=/eldk/usr/bin/ppc_8xx-gcc ./configure --host=ppc-linux --prefix=/home/jinlei/iconv_static_lib_ppc | |
linux和win共享文件夹 | |
mkdir /mnt/leiking | |
mount -t smbfs -o username=Administrator,iocharset=GB2312 -l //10.86.10.48/Codes /mnt/leiking/ | |
mkdir /mnt/leiking/6204 | |
mount -t smbfs -o username=Administrator,iocharset=GB2312 -l //10.86.10.48/Code /mnt/leiking/6204 | |
mkdir /mnt/leiking/6204new | |
mount -t smbfs -o username=Administrator,iocharset=GB2312 -l //10.86.10.48/Codes /mnt/leiking/6204new | |
单板共享linux文件夹 | |
宿主机: | |
修改etc/export添加目录 | |
/tftpboot/leiking *(ro,sync,no_root_squash) | |
/etc/rc.d/init.d/portmap start | |
/etc/rc.d/init.d/nfs start | |
exportfs -rv | |
单板: | |
mkdir /mnt/leiking | |
mount -t nfs 10.86.12.78:/tftpboot/leiking /mnt/leiking | |
若出现no device found则是内核没有编入nfs,需编译内核 | |
copy 目录 | |
cp -r | |
编译内核: | |
linux目录下: | |
make ARCH=ppc CROSS_COMPILE=/eldk/usr/bin/ppc_8xx- menuconfig | |
将生成的configdef拷到make_kernel | |
make ZXRIS6204 生成/linux-2.6.15/arch/ppc/boot/images | |
cp uImage /tftpboot/ZXRIS6204_LINUX_jinlei | |
umount /mnt/leiking | |
ntsd -c q -p PID | |
useradd leiking -d /home/leiking -p jinlei0216 | |
查看所有用户 | |
cat /etc/passwd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment