Hi I'm a total newb to OpenWRT but would appreciate any help possible.
I'm testing an OEM 4G/Router i received that had an old version of OpenWRT without any instruction from the manufacturer.
The old version was:
OpenWRT Firmware Version: G4-OPEN-7620A-V01 R02 006
OpenWRT Barrier Breaker 14.07
After much trial and error I upgraded the firmware and thought I bricked the device but after connecting via JTAG/Serial I'm able to communicate with the device and was able to flash various images.
i think you might be right ... any advice on how I can tackle that.... I do have the old working firmware I can flash back to .... Is there something I can run on that to check this?
Check if the power supply pins on the PCIe socket are powered up. If they are with stock firmware but not with OpenWrt you can use OpenWrt to manually set the GPIOs one at a time to see which one it is.
Use a multimeter to see if the modem is powered up. To enable a GPIO pin to userspace and set its logic level, do this:
cd /sys/class/gpio
echo 0 > export
echo out > gpio0/direction
echo 1 > gpio0/value
echo 0 > gpio0/value
If you get an error on the export, the GPIO is already claimed by the kernel for a LED or some other function (which may or may not be appropriate for your board). If the GPIO doesn't seem to do anything, echo its number to unexport and try the next one.
Do ls -l see if 3g_power is a symlink to one of the numbered ones.
There is also something about a usb_hub, which may be another chip, although the USB status shows the modem is connected directly to the internal root hub in the SoC.
config system
option hostname 'OpenWrt'
option timezone 'UTC'
option ttylogin '0'
option log_size '64'
option urandom_seed '0'
config timeserver 'ntp'
option enabled '1'
option enable_server '0'
list server '0.openwrt.pool.ntp.org'
list server '1.openwrt.pool.ntp.org'
list server '2.openwrt.pool.ntp.org'
list server '3.openwrt.pool.ntp.org'
confirmed via multi-meter VCC is not getting to the modem on the new version ... sent 1 to pin 40 using the utility script mentioned here : https://openwrt.org/docs/techref/hardware/port.gpio still no voltage and when i use the script to read the input value it's still returns a 0.
tried a bunch of other ways without luck setting 40 to high I was able to set 0 to high but that didnt help
root@OpenWrt:~# cat /sys/class/gpio/gpio0/direction
in
root@OpenWrt:~# cat /sys/class/gpio/gpio0/value
0
root@OpenWrt:~# cat /sys/class/gpio/gpio0/direction
in
root@OpenWrt:~# echo 1 > /sys/class/gpio/gpio0/value
ash: write error: Operation not permitted
root@OpenWrt:~# echo out > /sys/class/gpio/gpio0/direction
root@OpenWrt:~# echo 1 > /sys/class/gpio/gpio0/value
root@OpenWrt:~# cat /sys/class/gpio/gpio0/direction
out
root@OpenWrt:~# cat /sys/class/gpio/gpio0/value
1
root@OpenWrt:~# echo out > /sys/class/gpio/gpio40/direction
root@OpenWrt:~# echo 1 > /sys/class/gpio/gpio40/value
root@OpenWrt:~# cat /sys/class/gpio/gpio40/value
0
root@OpenWrt:~# echo out > /sys/class/gpio/gpio40/direction
root@OpenWrt:~# cat /sys/class/gpio/gpio40/direction
out
root@OpenWrt:~# echo 1 > /sys/class/gpio/gpio40/value
root@OpenWrt:~# cat /sys/class/gpio/gpio40/value
0
root@OpenWrt:~# echo out > /sys/class/gpio/gpio/direction
gpio0/ gpio40/ gpiochip0/ gpiochip24/ gpiochip40/ gpiochip72/
root@OpenWrt:~# echo out > /sys/class/gpio/gpiochip40/direction
-ash: can't create /sys/class/gpio/gpiochip40/direction: Permission denied
root@OpenWrt:~#