平台:AM3352
内核版本:linux3.8.13
板子:BB-Black
请问下 3.8.13内核下,启动时 init执行的第一个脚本在哪边?跟以前接触的2.6.xx版本不大一样,我再/etc目录下的以下文件中没找到
root@beaglebone:/etc# ls
ConsoleKit hostname rc0.d
ImageMagick hosts rc1.d
UPower init.d rc2.d
Wireless inputrc rc3.d
X11 iproute2 rc4.d
angstrom-build-info issue rc5.d
angstrom-version issue.net rc6.d
avahi ld.so.cache rcS.d
bash_completion.d ld.so.conf resolv.conf
binfmt.d libnl rpc
bluetooth localtime rsyncd.conf
busybox.links login.defs securetty
ca-certificates lvm security
ca-certificates.conf machine-id services
cron.d mailcap.order shadow
cron.daily man.config shells
cron.deny mime.types skel
cron.hourly mke2fs.conf sound
cron.monthly modprobe.d ssh
cron.weekly modules ssl
crontab modules-load.d sysconfig
dbus-1 modules.conf sysctl.conf
default motd sysctl.d
depmod.d mpd.conf syslog-startup.conf
dogtag mtab syslog-startup.conf.busybox
dropbear network systemd
environment nsswitch.conf terminfo
filesystems obex-data-server timestamp
fonts ofono timezone
fstab opkg tmpfiles.d
gconf os-release ts.conf
gdm pam.d udev
gimp pango udhcpc.d
gnome-settings-daemon passwd udhcpd.conf
group passwd- update-fonts-common.d
group- pm version
gshadow polkit-1 wpa_supplicant.conf
gtk-2.0 profile xdg
gtk-3.0 profile.d xinetd.conf
host.conf protocols xinetd.d
Jian Zhou:
首先是执行/etc/rcS.d中的脚本内容,从S00脚本开始
user4131006:
回复 Jian Zhou:
你好,在系统还是kernel代码中都没有你所述的S00脚本,这个脚本是在哪里的??,还请 Jian Zhou帮忙解答下,先谢了~~
root@beaglebone:/etc# root@beaglebone:/etc# find ./ -name S00root@beaglebone:/etc# cd ..root@beaglebone:/# find ./ -name S00root@beaglebone:/# cat /proc/version Linux version 3.8.13 (root@linux-bsp1) (gcc version 4.5.1 (Sourcery G++ Lite 2010.09-50) ) #3 SMP Thu Sep 4 11:34:52 CST 2014root@beaglebone:/# root@beaglebone:/# root@beaglebone:/#
代码搜寻:
linux-bsp1:~/kernel/kernel # linux-bsp1:~/kernel/kernel # pwd/root/kernel/kernellinux-bsp1:~/kernel/kernel # ls.config .tmp_kallsyms2.o .vmlinux.cmd Kconfig NULL-Modules arch firmware kernel net tools.config.old .tmp_versions COPYING MAINTAINERS README block fs lib samples usr.missing-syscalls.d .tmp_vmlinux1 CREDITS Makefile REPORTING-BUGS crypto include mm scripts virt.tmp_System.map .tmp_vmlinux2 Documentation Module.symvers System.map defconfig init modules.builtin security vmlinux.tmp_kallsyms1.o .version Kbuild NULL-K am335x drivers ipc modules.order sound vmlinux.olinux-bsp1:~/kernel/kernel # linux-bsp1:~/kernel/kernel # find ./ -name S00linux-bsp1:~/kernel/kernel #
Yaoming Qin:
回复 user4131006:
1. 查找的时候,可以加上通配符"*", 这里的S00是指用S00开头的脚本。
2. 一般的情况下是从rc5.d 启动的。这部分的内容属于linux标准的东西,建议您google/baidu下,也可以参考附件中的文档。
3. 建议您使用ti.com 发布的sdk包, http://software-dl.ti.com/sitara_linux/esd/AM335xSDK/06_00_00_00/index_FDS.html。
Jian Zhou:
回复 Yaoming Qin:
系统启动脚本,一般在文件系统的/etc/rcS.d和/etc/rc5.d目录中,这里面的大部分是一些脚本文件的链接,链接的文件在/etc/init.d/目录中
user4131006:
回复 Jian Zhou:
我们这边现在用的内核代码中,就没有找到etc/的相关目录在哪边?现在用的如下内核跟2.6.xx比较不同,是否用问题?可还有更好用的uboot+kernel版本来支持BB-Black evm??
用的kernel版本是在<中国版BB-Black用户手册_V1.3.pdf>推荐的 在英蓓特科技官网下载 的
arm-2010.09-50-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
Jian Zhou:
回复 user4131006:
etc/这个目录不是在内核源代码里的,是在文件系统里的。
ti发布的SDK06支持BB black,里面也有压缩好的文件系统。
user4131006:
回复 Jian Zhou:
那能否给个详细的链接地址?
我在如下链接下 找不到source code文件(am335x-evm-sdk-src-06.00.00.00.tar.gz和am335x-evm-sdk-bin-06.00.00.00.tar.gz 下载下来不是源码)
http://software-dl.ti.com/sitara_linux/esd/AM335xSDK/06_00_00_00/index_FDS.html。
user4131006:
回复 Jian Zhou:
给个 “ti发布的支持BB black的SDK06”的链接吧(包含了kernel, uboot, 文件系统,编译工具,文档等等的软件包 )
谢谢~
Steven Liu1:
回复 user4131006:
http://software-dl.ti.com/sitara_linux/esd/AM335xSDK/06_00_00_00/index_FDS.html
下载ti-sdk-am335x-evm-06.00.00.00-Linux-x86-Install.bin,安装即可。
user4131006:
回复 Steven Liu1:
你好 你所述的 ti-sdk-am335x-evm-06.00.00.00-Linux-x86-Install.bin已经下载,不知道如何安装(我要求的是能够看到代码(如windows下的sourceisight一样看/编辑代码))
1.安装在windows下还是linux下的?
2.windows下我试图用 虚拟光驱 读不出来
3.linux下 我也安装失败(具体操作如下,借用别人的linux服务器,非虚拟机)
linux-bsp1:/home/svncompilecheck/15k_dev/xujialei_Temp/No-dts # cat /proc/version Linux version 3.1.0-1.2-desktop (geeko@buildhost) (gcc version 4.6.2 (SUSE Linux) ) #1 SMP PREEMPT Thu Nov 3 14:45:45 UTC 2011 (187dde0)linux-bsp1:/home/svncompilecheck/15k_dev/xujialei_Temp/No-dts # linux-bsp1:/home/svncompilecheck/15k_dev/xujialei_Temp/No-dts # lsti-sdk-am335x-evm-06.00.00.00-Linux-x86-Install.binlinux-bsp1:/home/svncompilecheck/15k_dev/xujialei_Temp/No-dts # ./ti-sdk-am335x-evm-06.00.00.00-Linux-x86-Install.bin This program must be run in a graphical environment,or you must specify a silent or console install.Usage: ti-sdk-am335x-evm-06.00.00.00-Linux-x86-Install.bin [options …]
Available Options: –debug run installer in debug mode –debugconsole run installer with a debug console open –help display this information –mode [ARG] set the mode to run the installer in Available values: console, default, silent or standard –prefix [ARG] set the installation directory –response-file [ARG] a file to read installer responses from –save-response-file [ARG] a file to write installer responses to when the installer exits –temp [ARG] set the temporary directory used by this program –test run installer without installing any files –version display installer version information
linux-bsp1:/home/svncompilecheck/15k_dev/xujialei_Temp/No-dts # ./ti-sdk-am335x-evm-06.00.00.00-Linux-x86-Install.bin debugThis program must be run in a graphical environment,or you must specify a silent or console install.Usage: ti-sdk-am335x-evm-06.00.00.00-Linux-x86-Install.bin [options …]
Available Options: –debug run installer in debug mode –debugconsole run installer with a debug console open –help display this information –mode [ARG] set the mode to run the installer in Available values: console, default, silent or standard –prefix [ARG] set the installation directory –response-file [ARG] a file to read installer responses from –save-response-file [ARG] a file to write installer responses to when the installer exits –temp [ARG] set the temporary directory used by this program –test run installer without installing any files –version display installer version information
linux-bsp1:/home/svncompilecheck/15k_dev/xujialei_Temp/No-dts #
TI中文支持网