[嵌入式Linux] 用攒电脑的办法快速玩转arm linux

[复制链接]
33787|209
 楼主| wangkj 发表于 2013-9-4 14:44 | 显示全部楼层
禁用hdmi,这个跟spi冲突
BeagleBoneBlack Cape Manager
Jump to: navigation, search

To display the overlays currently enabled by the cape manager, type:

cat /sys/devices/bone_capemgr.*/slots

On a default Beaglebone Black, it should show:

0: 54:PF---
1: 55:PF---
2: 56:PF---
3: 57:PF---
4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI

The format of output is:

Slot Number:
Slot I2C Client Address:
[P]robed Flag
Probe [F]ailed Flag
[O]verride Flag
[l]oading Flag
[L]oaded Flag

Capes can be forcibly enabled or disabled by passing the following parameters to the kernel during boot:

capemgr.enable_partno=BB-CAPENAME
capemgr.disable_partno=BB-CAPENAME

Kernel parameters can be specified in the uEnv.txt file.

For example, if you want to disable the HDMI interface to free up I/O, mount the FAT partition found on the onboard eMMC where the uEnv.txt file is located:

mount /dev/mmcblk0p1  /media/card

Add add the following to the uEnv.txt file:

optargs=quiet capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN

BB-BONELT-HDMI is the on-board HDMI interface. BB-BONELT-HDMIN is the same interface but with no audio. If only the BB-BONELT-HDMI interface overlay is disabled, the BB-BONELT-HDMIN is loaded instead hence the requirement to disable both.

Then umount and reboot the bone.

Now, when the list of overlays are displayed, the Bone-Black-HDMI & Bone-Black-HDMIN interfaces are shown as not loaded (L):

0: 54:PF---
1: 55:PF---
2: 56:PF---
3: 57:PF---
4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
5: ff:P-O-- Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
6: ff:P-O-- Bone-Black-HDMIN,00A0,Texas Instrument,BB-BONELT-HDMIN
 楼主| wangkj 发表于 2013-9-4 15:29 | 显示全部楼层
./spidev_test
-bash: ./spidev_test: No such file or directory
root@arm:~# gcc
-bash: gcc: command not found
root@arm:~# apt-get install gcc
 楼主| wangkj 发表于 2013-9-4 15:29 | 显示全部楼层
fter this operation, 44.0 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
 楼主| wangkj 发表于 2013-9-4 15:44 | 显示全部楼层
cat /proc/version
Linux version 3.8.13-bone26 (root@imx6q-wandboard-2gb-0) (gcc version 4.7.3 (Ubu
ntu/Linaro 4.7.3-1ubuntu1) ) #1 SMP Sat Aug 17 00:43:59 UTC 2013
root@arm:~# cat /etc/issue
Ubuntu 13.04 \n \l

root@arm:~# ./spidev_test
spi mode: 0
bits per word: 8
max speed: 500000 Hz (500 KHz)

FF FF FF FF FF FF
40 00 00 00 00 95
FF FF FF FF FF FF
FF FF FF FF FF FF
FF FF FF FF FF FF
DE AD BE EF BA AD
F0 0D
root@arm:~#
root@arm:~# uname -a
Linux arm 3.8.13-bone26 #1 SMP Sat Aug 17 00:43:59 UTC 2013 armv7l armv7l armv7
终于正常了。。。 测试方法是把spi_out spi_in 连接起来。发出的和回读的数据一致了。
 楼主| wangkj 发表于 2013-9-4 15:46 | 显示全部楼层
原因是,原来的spidev_test是在以前的版本编译的,和ubuntu的libc不一致,重新下载gcc,glibc重新编译即可。
 楼主| wangkj 发表于 2013-9-4 15:47 | 显示全部楼层
echo BB-SPIDEV1 > /sys/devices/bone_capemgr.8/slots 记住这条。。。。 还有修改的uenv.txt
 楼主| wangkj 发表于 2013-9-4 16:53 | 显示全部楼层
本帖最后由 wangkj 于 2013-9-4 16:55 编辑

apt-get install samba
look1259 发表于 2013-9-8 20:33 | 显示全部楼层
很不错顶一下不要沉
look1259 发表于 2013-9-8 20:34 | 显示全部楼层
刚到手一块bbb
 楼主| wangkj 发表于 2013-9-8 22:28 | 显示全部楼层
玩转这个板子,还有很多问题,但貌似对这个板子感兴趣的人不多。。。
也不知道是不是该继续,刚才更新的那些帖子,已经不是那么详细的写了。
dong_abc 发表于 2013-9-9 01:18 | 显示全部楼层
21ic已经不适合讨论技术问题了。
look1259 发表于 2013-9-9 21:30 | 显示全部楼层
我顶的怎么没出现啊
look1259 发表于 2013-9-9 21:31 | 显示全部楼层
王会计继续啊
 楼主| wangkj 发表于 2013-9-10 08:05 | 显示全部楼层
昨天,把wifi,3g卡装上了,不想写了,
现在,准备弄 eclipse arm linux gcc。
貌似木有人对技术有兴趣,反而那些胡扯的题目关注的人更多。。。
技术层面,越深入,懂得人越少。
现在,还有几个像俺这样的傻瓜还继续玩技术?
zjf0000 发表于 2013-9-10 10:03 | 显示全部楼层
一般这种东西,讨论不出啥结果来,还不如自己多看看资料实在。
zjf0000 发表于 2013-9-10 10:05 | 显示全部楼层
spi这玩意搞的很晕,一般模拟来的比较快。
 楼主| wangkj 发表于 2013-9-10 16:10 | 显示全部楼层
spi 用硬件可以上dma,cpu可以干别的。而且,速度更快。
dong_abc 发表于 2013-9-10 21:24 | 显示全部楼层
wangkj 发表于 2013-9-10 08:05
昨天,把wifi,3g卡装上了,不想写了,
现在,准备弄 eclipse arm linux gcc。
貌似木有人对技术有兴趣,反 ...

同感,以后要淡出21ic了,没什么意思。

偶之前都觉得玩技术的同时也要想想怎么翻身,退休了再一心一意玩技术!

悲剧的是见过一些老工程师年龄大了,眼睛不好了,技术也没办法玩!

 楼主| wangkj 发表于 2013-9-11 08:21 | 显示全部楼层
悲剧的天朝人。。。。。。 没有土地 没有尊严 没有权利
jisjklala 发表于 2013-9-11 11:16 | 显示全部楼层
wangkj 发表于 2013-9-10 08:05
昨天,把wifi,3g卡装上了,不想写了,
现在,准备弄 eclipse arm linux gcc。
貌似木有人对技术有兴趣,反 ...

确实 技术方面越深入懂得人越少 曲高和寡 现在都考虑怎么坑钱 谁还搞这些。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 在线客服 返回列表 返回顶部