I have been running BBB networking for some time using a netmask of 255.255.255.0; I now have to expand the network
to 500 hosts, so I changed the mask to 255.255.254.0 to give a network at 192.168.0.0/23. I edited /etc/network/interfaces,
but that seems to change nothing as per following; blessed connman is NOT running:
Rebooted and swapped routers (only one has the new network on it).
I’m getting the feeling that Debian lost control here and needs connman. But I can’t upgrade, so now I have to change
horses in midstream because the old images can’t support a netmask other than /24; not a problem if you are fooling
around in the lab, but once you have installed embedded systems in the field … geez this sort of thing burns me up.
To the best of my knowledge, "aptitude" is just a front-end using apt
in the background to perform actions. At the best, it is still using the
same package database.
A cut&paste of the actual failure messages would have been of help...
{An hour later, after formatting and writing the 10.3 image to an SD card}
No apparent problems on a fresh 10.3 Buster image.
debian@beaglebone:~$ sudo apt install gdb
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libbabeltrace1 libc6-dbg
Suggested packages:
gdb-doc gdbserver
The following NEW packages will be installed:
gdb libbabeltrace1 libc6-dbg
0 upgraded, 3 newly installed, 0 to remove and 12 not upgraded.
Need to get 13.8 MB of archives.
After this operation, 23.5 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://deb.debian.org/debian buster/main armhf libbabeltrace1 armhf
1.5.6-2+deb10u1 [152 kB]
Get:2 http://deb.debian.org/debian buster/main armhf gdb armhf 8.2.1-2+b3
[2,824 kB]
Get:3 http://deb.debian.org/debian buster/main armhf libc6-dbg armhf
2.28-10 [10.8 MB]
Fetched 13.8 MB in 10s (1,452 kB/s)
Selecting previously unselected package libbabeltrace1:armhf.
(Reading database ... 72570 files and directories currently installed.)
Preparing to unpack .../libbabeltrace1_1.5.6-2+deb10u1_armhf.deb ...
Unpacking libbabeltrace1:armhf (1.5.6-2+deb10u1) ...
Selecting previously unselected package gdb.
Preparing to unpack .../gdb_8.2.1-2+b3_armhf.deb ...
Unpacking gdb (8.2.1-2+b3) ...
Selecting previously unselected package libc6-dbg:armhf.
Preparing to unpack .../libc6-dbg_2.28-10_armhf.deb ...
Unpacking libc6-dbg:armhf (2.28-10) ...
Setting up libc6-dbg:armhf (2.28-10) ...
Setting up libbabeltrace1:armhf (1.5.6-2+deb10u1) ...
Setting up gdb (8.2.1-2+b3) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...
debian@beaglebone:~$
Off-hand, that appears to be a problem in your network configuration
(do you have a network connection? Note that unless one fiddles with
"internet connection sharing" on the host computer, the USB access will not
work -- you'll need an actual ethernet cable connected to a router)
root@beaglebone:~/evseclient/compilec# gcc -o gcctest gcctest.c
gcctest.c: In function ‘main’:
gcctest.c:15:3: warning: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration]
close(memh);
^~~~~
pclose
/* using memory mapped I/O */
memh=open(“/dev/mem”, O_RDWR);
if (memh!=0) {
close(memh);
}
}
The problems get even weirder, with this sort of thing:
evsectlna.c:86:23: error: unknown type name ‘chargecurrent’
int availablecurrent, chargecurrent, pwmisactive, nameplaterating, rfidpresent;
^~~~~~~~~~~~~
Question: is there a way to add some older gcc’s to the etc/apt/soures.list so I can find something that I can use?
root@beaglebone:~/evseclient/compilec# gcc -o gcctest gcctest.c
gcctest.c: In function ‘main’:
gcctest.c:15:3: warning: implicit declaration of function ‘close’; did you
mean ‘pclose’? [-Wimplicit-function-declaration]
close(memh);
"""
The open and creat functions are declared in the header file fcntl.h,
while close is declared in unistd.h.
"""
The problems get even weirder, with this sort of thing:
evsectlna.c:86:23: error: unknown type name ‘chargecurrent’
int availablecurrent, chargecurrent, pwmisactive, nameplaterating,
rfidpresent;
I'd look at lines preceding that one for some undetected error (missing
; maybe).