dji-sdk / Manifold-Cam

The project realizes to get the video data from X3 camera on M100.
34 stars 25 forks source link

gpio243 Directory nonexistent #17

Closed tkkcc closed 6 years ago

tkkcc commented 6 years ago

run as root, it says cannot create /sys/class/gpio/gpio243/value: Directory nonexistent

tegra-ubuntu# ./test -d                          
System init.......
create ivafilter success
Inside NvxLiteH264DecoderLowLatencyInitNvxLiteH264DecoderLowLatencyInit set DPB and Mjstreamingsh: 1: cannot create /sys/class/gpio/gpio243/value: Directory nonexistent
disable host
enable device
mount: unknown filesystem type 'gadgetfs'
mount gadgetfs
Couldn't open device.
Error: init error
system exit...........
umount2: Invalid argument
umount: /dev/gadget: not mounted
sh: 1: cannot create /sys/class/gpio/gpio243/value: Directory nonexistent
All threads exit successfully !
zsh: segmentation fault  ./test -d
tegra-ubuntu# 
tegra-ubuntu# cat /sys/kernel/debug/gpio
GPIOs 0-255, platform/6000d000.gpio, tegra-gpio:
 gpio-58  (vdd-lcd-bl-en       ) out lo
 gpio-59  (panel rst           ) out lo
 gpio-63  (avdd-hdmi-pll       ) out lo
 gpio-70  (temp_alert          ) in  hi
 gpio-82  (raydium-irq         ) in  lo
 gpio-84  (raydium-reset       ) out lo
 gpio-86  (vdd-hdmi            ) out hi
 gpio-108 (usb0-vbus           ) in  lo
 gpio-109 (usb1-usb2-vbus      ) in  hi
 gpio-111 (hdmi_hpd            ) in  hi
 gpio-122 (vdd-lcd-bl          ) out lo
 gpio-128 (Power               ) in  hi
 gpio-132 (sdhci_wp            ) in  hi
 gpio-136 (sdmmc-en-supply     ) out lo
 gpio-138 (reg-dcdc-1v2        ) out hi
 gpio-143 (headphone detect    ) in  hi
 gpio-170 (sdhci_cd            ) in  hi

I tried echo 243> /sys/class/gpio/export

tegra-ubuntu# echo 243 > /sys/class/gpio/export  
tegra-ubuntu# ./test -d                        
System init.......
create ivafilter success
Inside NvxLiteH264DecoderLowLatencyInitNvxLiteH264DecoderLowLatencyInit set DPB and Mjstreamingsh: echo: I/O error
disable host
enable device
mount: unknown filesystem type 'gadgetfs'
mount gadgetfs
Couldn't open device.
Error: init error
system exit...........
umount2: Invalid argument
umount: /dev/gadget: not mounted
sh: echo: I/O error
All threads exit successfully !
zsh: segmentation fault  ./test -d
tegra-ubuntu# 
lestat-bhaskar commented 6 years ago

Hello @tkkcc,

I am facing a similar problem, did you find any solution to it ?

tkkcc commented 6 years ago

@lestat-bhaskar I believe manifold has different systems. Use new model with old system will cause this problem. I flash the image from a model bought at same time, no problem any more.