I think that just a space between the disable / enables lines is all you
need. There are a couple ways I could read your last message as in text
formating etc, but be sure there are no Windows type white spaces or more
specifically what Microsoft OSes call a line feed.

To be succinct: If you're using backslash to esc the line to make your file
more readable. Dont. put it all on one line.


On Fri, Dec 6, 2013 at 1:14 PM, David Lambert <[email protected]> wrote:

> On 12/06/2013 01:20 PM, Robert Nelson wrote:
>
>> BTW, if you used my kernel build script, the config is already setup
>> to place the *.dtbo's (firmware) into into the kernel (zImage). So if
>> your utilizing a new one, you don't actually have to copy the *.dtbo
>> to the /lib/firmware/ directory..
>>
> Thanks so much for your help, your scripts really help simplify things a
> lot!
> BTW I am going to change the name of my module to something more
> appropriate before sending you a patch. I just need to test it first with
> the "argus-ups" name.
> I am getting really close now, but do not seem to be able to automatically
> load my driver/dt. Manually all works fine, as follows:
>
> root@debian:~# echo argus-ups:00A0 > /sys/devices/bone_capemgr.9/slots
> [  543.266228] bone-capemgr bone_capemgr.9: part_number 'argus-ups',
> version '00A0'
> [  543.274815] bone-capemgr bone_capemgr.9: slot #8: generic override
> [  543.281388] bone-capemgr bone_capemgr.9: bone: Using override eeprom
> data at slot 8
> [  543.289441] bone-capemgr bone_capemgr.9: slot #8: 'Override Board
> Name,00A0,Override Manuf,argus-ups'
> [  543.299325] bone-capemgr bone_capemgr.9: slot #8: Requesting part
> number/version based 'argus-ups-00A0.dtbo
> [  543.309581] bone-capemgr bone_capemgr.9: slot #8: Requesting firmware
> 'argus-ups-00A0.dtbo' for board-name 'Override Board Name', version '00A0'
> [  543.328913] bone-capemgr bone_capemgr.9: slot #8: dtbo
> 'argus-ups-00A0.dtbo' loaded; converting to live tree
> [  543.340358] bone-capemgr bone_capemgr.9: slot #8: #2 overlays
> [  543.352047] bone-capemgr bone_capemgr.9: slot #8: Applied #2 overlays.
> root@debian:~# [  543.368913] Init UPS module - debug=0, shutdown=1
> [  543.375128] Debug parameter read from DT:0
> [  543.379479] Shutdown parameter read from DT:1
>
> root@debian:~# cat /sys/devices/bone_capemgr.9/slots
>  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
>  8: ff:P-O-L Override Board Name,00A0,Override Manuf,argus-ups
>
> But if I add:
>
> optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN \
> capemgr.enable_partno=argus-ups
>
> to the start of uEnv.txt, then I get the following in dmesg:
>
>
> --snip--
> [    0.000000] Kernel command line: console=ttyO0,115200n8
> capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN
> capemgr.enable_partno=argus-ups VIDEO_DISPLAY root=/dev/mmcblk0p5 ro
> rootfstype=ext4 rootwait fixrtc
> --snip--
> [    1.382046] bone-capemgr bone_capemgr.9: Skipping disabled cape with
> part# BB-BONELT-HDMIN
> [    1.420581] bone-capemgr bone_capemgr.9: slot #0: No cape found
> [    1.457686] bone-capemgr bone_capemgr.9: slot #1: No cape found
> [    1.494794] bone-capemgr bone_capemgr.9: slot #2: No cape found
> [    1.531905] bone-capemgr bone_capemgr.9: slot #3: No cape found
> [    1.538151] bone-capemgr bone_capemgr.9: slot #4: specific override
> [    1.544751] bone-capemgr bone_capemgr.9: bone: Using override eeprom
> data at slot 4
> [    1.552798] bone-capemgr bone_capemgr.9: slot #4:
> 'Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G'
> [    1.562915] bone-capemgr bone_capemgr.9: slot #5: specific override
> [    1.569510] bone-capemgr bone_capemgr.9: bone: Using override eeprom
> data at slot 5
> [    1.577555] bone-capemgr bone_capemgr.9: slot #5:
> 'Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI'
> [    1.587569] bone-capemgr bone_capemgr.9: slot #6: specific override
> [    1.594164] bone-capemgr bone_capemgr.9: bone: Using override eeprom
> data at slot 6
> [    1.602209] bone-capemgr bone_capemgr.9: slot #6:
> 'Bone-Black-HDMIN,00A0,Texas Instrument,BB-BONELT-HDMIN'
> [    1.612420] bone-capemgr bone_capemgr.9: enabled_partno part_number
> 'argus-ups', version 'N/A', prio '0'
> [    1.622379] bone-capemgr bone_capemgr.9: slot #7: generic override
> [    1.628873] bone-capemgr bone_capemgr.9: bone: Using override eeprom
> data at slot 7
> [    1.636917] bone-capemgr bone_capemgr.9: slot #7: 'Override Board
> Name,00A0,Override Manuf,argus-ups'
> [    1.646758] bone-capemgr bone_capemgr.9: Skipping loading of disabled
> cape with part# BB-BONELT-HDMI
> [    1.656356] bone-capemgr bone_capemgr.9: Skipping loading of disabled
> cape with part# BB-BONELT-HDMIN
> [    1.666237] bone-capemgr bone_capemgr.9: loader: before slot-4
> BB-BONE-EMMC-2G:00A0 (prio 1)
> [    1.675115] bone-capemgr bone_capemgr.9: loader: check slot-4
> BB-BONE-EMMC-2G:00A0 (prio 1)
> [    1.683911] bone-capemgr bone_capemgr.9: initialized OK.
> [    1.689508] bone-capemgr bone_capemgr.9: loader: before slot-7
> argus-ups:00A0 (prio 0)
> [    1.697824] bone-capemgr bone_capemgr.9: loader: check slot-7
> argus-ups:00A0 (prio 0)
> [    1.707286] OneNAND driver initializing
> [    1.712253] usbcore: registered new interface driver cdc_ether
> [    1.718459] usbcore: registered new interface driver rndis_host
> [    1.724749] bone-capemgr bone_capemgr.9: loader: check slot-4
> BB-BONE-EMMC-2G:00A0 (prio 1)
> [    1.733537] bone-capemgr bone_capemgr.9: loader: after slot-7
> argus-ups:00A0 (prio 0)
> [    1.741835] usbcore: registered new interface driver cdc_ncm
> [    1.747803] bone-capemgr bone_capemgr.9: slot #7: Requesting part
> number/version based 'argus-ups-00A0.dtbo
> [    1.758613] usbcore: registered new interface driver cdc_acm
> [    1.764575] cdc_acm: USB Abstract Control Model driver for USB modems
> and ISDN adapters
> [    1.772976] Initializing USB Mass Storage driver...
> [    1.778120] bone-capemgr bone_capemgr.9: slot #7: Requesting firmware
> 'argus-ups-00A0.dtbo' for board-name 'Override Board Name', version '00A0'
> --snip--
> [    2.559761] bone-capemgr bone_capemgr.9: failed to load firmware
> 'argus-ups-00A0.dtbo'
> [    2.568151] bone-capemgr bone_capemgr.9: loader: failed to load slot-7
> argus-ups:00A0 (prio 0)
> [    2.577237] bone-capemgr bone_capemgr.9: loader: check slot-4
> BB-BONE-EMMC-2G:00A0 (prio 1)
> [    2.592771] bone-capemgr bone_capemgr.9: loader: after slot-4
> BB-BONE-EMMC-2G:00A0 (prio 1)
> [    2.610203] bone-capemgr bone_capemgr.9: slot #4: Requesting firmware
> 'cape-bone-2g-emmc1.dtbo' for board-name 'Bone-LT-eMMC-2G', version '00A0'
> [    2.639467] bone-capemgr bone_capemgr.9: slot #4: dtbo
> 'cape-bone-2g-emmc1.dtbo' loaded; converting to live tree
> [    2.661184] bone-capemgr bone_capemgr.9: slot #4: #2 overlays
>
> This works fine on my Angstrom system.
>
> Regards,
>
> Dave.
>
>
>
>
>
> --
> For more options, visit http://beagleboard.org/discuss
> --- You received this message because you are subscribed to the Google
> Groups "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to