Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
fix build with gcc 10
Define curr_state as extern in nanocom.h to avoid the following build
failure with gcc 10 (which defaults to -fno-common):
/home/buildroot/autobuild/instance-3/output-1/host/lib/gcc/arm-buildroot-linux-gnueabihf/10.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /tmp/ccLQeiek.o:(.bss+0x7c): multiple definition of `curr_state'; /tmp/ccse155z.o:(.bss+0x0): first defined here
Fixes:
- http://autobuild.buildroot.org/results/4af4710cb9bbb1bc770b9824339dd7dbf8a80b05
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
diff -Naurp nanocom-1.0.orig/nanocom.c nanocom-1.0/nanocom.c
--- nanocom-1.0.orig/nanocom.c 2020-09-04 14:50:15.973320870 +0200
+++ nanocom-1.0/nanocom.c 2020-09-04 14:53:49.429325087 +0200
@@ -20,6 +20,8 @@ Based upon microcom by Anca and Lucian J
#include "nanocom.h"
+state curr_state;
+
int crnl_mapping; //0 - no mapping, 1 mapping
char device[MAX_DEVICE_NAME]; /* serial device name */
diff -Naurp nanocom-1.0.orig/nanocom.h nanocom-1.0/nanocom.h
--- nanocom-1.0.orig/nanocom.h 2020-09-04 14:50:15.973320870 +0200
+++ nanocom-1.0/nanocom.h 2020-09-04 14:51:12.269321982 +0200
@@ -73,7 +73,7 @@ typedef struct {
char echo_type; /*r for remote, l for local and n for none*/
} state;
-state curr_state;
+extern state curr_state;
#endif /* NANOCOM_H */

View File

@@ -0,0 +1,19 @@
GCC 14 made implicit function definitions an error and the forward declaration
for display_state() was using the wrong name, causing a compilation
failure at the call site.
Upstream: Submitted to author via email
Signed-off-by: Florian Larysch <fl@n621.de>
diff -purN old/nanocom.h new/nanocom.h
--- old/nanocom.h 2025-08-10 01:34:12.000284003 +0200
+++ new/nanocom.h 2025-08-10 01:27:59.545821909 +0200
@@ -56,7 +56,7 @@ void cleanup_termios(int signal);
void init_stdin(struct termios *sts);
void init_comm();
void usage( char *str);
-void display_status();
+void display_state();
/*typedef to represent the current line state

View File

@@ -0,0 +1,19 @@
GCC 15 switched to C23 by default, which made "void foo()" equivalent to
"void foo(void)". This causes a build error because init_comm() doesn't
actually take any arguments.
Upstream: Submitted to author via email
Signed-off-by: Florian Larysch <fl@n621.de>
diff -purN old/nanocom.c new/nanocom.c
--- old/nanocom.c 2025-08-10 01:34:12.000284003 +0200
+++ new/nanocom.c 2025-08-10 01:31:05.639050630 +0200
@@ -329,7 +329,7 @@ int main(int argc, char *argv[]) {
memcpy(&pots, &pts, sizeof(pots));
/*setup serial port with new settings*/
- init_comm(&pts);
+ init_comm();
fprintf(stderr,"Press CTRL+T for menu options");
display_state();

12
package/nanocom/Config.in Normal file
View File

@@ -0,0 +1,12 @@
config BR2_PACKAGE_NANOCOM
bool "nanocom"
help
Nanocom is based upon microcom (http://microcom.port5.com/)
but removes the scripting and logging features while
introducing support for setting local/remote echo, parity
and stop bits. It also follows a more standard command line
style using the getopt function. Internally much of the
code has been rewritten and reformatted, the menu system in
particular is almost entirely different.
http://nanocom.sourceforge.net/

View File

@@ -0,0 +1,3 @@
# Locally computed:
sha256 5cb26e3e232cfc4a7cb16da432db532b775c5ebdb887ac9d39df5632f2c9a5e5 nanocom.tar.gz
sha256 e6d6a009505e345fe949e1310334fcb0747f28dae2856759de102ab66b722cb4 COPYING

View File

@@ -0,0 +1,22 @@
################################################################################
#
# nanocom
#
################################################################################
NANOCOM_VERSION = 1.0
NANOCOM_SOURCE = nanocom.tar.gz
NANOCOM_SITE = http://downloads.sourceforge.net/project/nanocom/nanocom/v$(NANOCOM_VERSION)
NANOCOM_STRIP_COMPONENTS = 0
NANOCOM_LICENSE = GPL-2.0+
NANOCOM_LICENSE_FILES = COPYING
define NANOCOM_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)" -C $(@D)
endef
define NANOCOM_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -D $(@D)/nanocom $(TARGET_DIR)/usr/bin/nanocom
endef
$(eval $(generic-package))