WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Recent Posts

Pages: [1] 2 3 ... 10
1
TCB Talk / Re: Tiny Core v17.0 upgrade issues
« Last post by Stefann on Today at 11:47:51 AM »
Yes I will “set it up to crash”.
But first travel between April 2-10 running on TC15.
IF it crashes I will notice that as the system runs an Apache webserver that is available from outside.
My brother lives nearby and could than give it a manual reset.

The fricky thing is that “the full OS crashes”. No way to reset from outside.
My application has a watchdog around it. If that crashes it gets a restart after 15 minutes.

When I get back to “let it crash” I will also search my vga-monitor and keyboard that I have somewhere at the attic for exactly this reason.
2
TCB Talk / Re: Re: Tiny Core v17.0 upgrade issues
« Last post by Paul_123 on Today at 11:36:23 AM »
We update Glibc every release, For the most part Glibc is backwards compatible.  So there should be no reason to recompile when moving from 15->17.....but if you compiled under 17, then it will not work on 15.

Note that we keep referencing the Serial USB interface, but it could be any of them.  Now that you have logging figured out, it might be useful to set it so that it does crash, to hopefully verify the reason for the crash.
3
TCB Talk / Re: Tiny Core v17.0 upgrade issues
« Last post by Stefann on Today at 10:49:09 AM »
Hickup when I restarted on TC15,
I thought it was running (all gets started automatically all seemed up) but I noticed that the state did not change.
Better checking revealed:
- yes TC15 was running
- but my application was not

Starting it from the command line gave me:
Code: [Select]
tc@huis:/krubo/work$ /krubo/work/krubo /krubo/work/1wire.def
/krubo/work/krubo: /lib/libc.so.6: version `GLIBC_ABI_GNU_TLS' not found (required by /krubo/work/krubo)
/krubo/work/krubo: /lib/libc.so.6: version `GLIBC_2.42' not found (required by /krubo/work/krubo)

What I did:
- completely recompiled my application on TC15
- restart

now all works.

Which makes me thinking:
- I probably need to do that on TC17: "completely recompile the application"

Anyway... I now want to run the thing "crash free" for upcoming days to allow me a headache-free travel April 2-10
4
TCB Talk / Re: Tiny Core v17.0 upgrade issues
« Last post by Stefann on Today at 09:02:55 AM »
Update,
After 48hrs it was still running under TC17 with extra bootcode "usbcore.autosuspend=-1"
Logging at *.notice level but not much in logging. Only some application logging I made myself and some crontab-launches.

I stopped all manual.
I will be travelling April 2-10 during which period I cannot risk a crash.
So.. I reverted back to TC15 and restarted.
That gives me a few days of run hopefully without crash.
The thing did run for multipel month without crash before I started my upgrade work so in principle it should run without crash now.
However... there is always the possibility that during the upgrade I did something "TC17 unrelated" that is causing all this. So in itself this should also give confirmation that TC15 is stable.
Target to run until April 10...11.

Note...
On the positive side..
It's extremely convenient that going back to earlier release is as simple as:
- modify tce/boot/extlinux/extlinux.conf to pick the older core.gz and vmlinuz (I did not overwrite them but kept old version as core15.gz and vmlinuz15)
- rename tce/optional directory to get the previous one back (yes I made a backup :-)
- modify tce/onboot.lst to include correct kernel extension for usb-serial

try that with windows.......

unless I get a crash: dont expect to hear form me until April-11
in the mean time: any smart idea is welcome. I will not have access to my tinycore system but travel with laptop so will check this forum regularly.
5
TCB Talk / Re: Installing on a Tatung TWN-5213 CU
« Last post by peasthope on March 29, 2026, 10:09:00 PM »
...
So with  "loglevel=7" , you get messages for log levels 0 through 6.  ...

Thanks for explaining.  Will have another go during the coming weekend.

                      ,,, P
6
TCB Talk / Re: Installing on a Tatung TWN-5213 CU
« Last post by Rich on March 29, 2026, 05:18:12 PM »
Hi peasthope
... According to https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html the highest loglevel is 7. ...
Yes, you are correct. The kernel.org documentation states:
Code: [Select]
loglevel= All Kernel Messages with a loglevel smaller than the
console loglevel will be printed to the console. It can
also be changed with klogd or other programs. The
loglevels are defined as follows:

0 (KERN_EMERG) system is unusable
1 (KERN_ALERT) action must be taken immediately
2 (KERN_CRIT) critical conditions
3 (KERN_ERR) error conditions
4 (KERN_WARNING) warning conditions
5 (KERN_NOTICE) normal but significant condition
6 (KERN_INFO) informational
7 (KERN_DEBUG) debug-level messages

Although it may be poorly worded, it states:
Quote
      All Kernel Messages with a loglevel smaller than the
      console loglevel
will be printed to the console.

So with  "loglevel=7" , you get messages for log levels 0 through 6.
That means if any debug messages were available, they would not
have been printed.
7
TCB Talk / Re: Installing on a Tatung TWN-5213 CU
« Last post by peasthope on March 29, 2026, 02:56:08 PM »
You can also add this boot code:
Code: [Select]
loglevel=8

Good.  Progress. Thanks!  =8~)

According to https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html the highest loglevel is 7.  Installed again and booted. Photographed the screen and tesseract converted to text needing a little cleanup. Might have missed a few characters but this is where booting ended.

Code: [Select]
pci_bus 0000:00: resource 4 [io  0x0000-Oxffff]
pcl_bus 0000:00: resource 5 [mem 0x00000000-0xffffffff]
pci_bus 0000:01: resource 0 [ic 0x1000-0x10ff}
pci_bus 0000:01: resource 1 [io 0@x1400-0x14ff]
pcl_bas 0000:01: resource 2 [mem 0x48000000-0x4bffffff pref]
pci_bus 0000:01: researce 3 [mem 0x4c000000-0x4fffffff]
pcl_bus 0000:05: resource 0 [io 0x1800-0x18ff]
pei_bus 0000:05: resource 1 [io 0x1c00-0x1cff]
pci_bus 0000:05: resource 2 (mem 0x54000000-0x57ffffff pref]
pci_bus 0000:05: resource 3 [mem 0x58000000-0x5bffffff]
pci 0000:00:00.0: Fixup for MediaGX/Geode Slave Disconnect Boundary (0x41=0x10)
PCI: CLS 16 bytes, default 32
platform rtc_cmos: registered platform RTC device (no PNP device found)
Trying to unpack rootfs image as initramfs...
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)
workingset: timestamp_bits=30 max_order=15 bucket_order=0
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
nfs4filelayout_init: NFSv4 File Layout Driver Registering...
nfs4flexfilelayout_init: NPSv4 Flexfile Layout Driver Registering...
fuse: init (API version 7.45)
cryptd: max_cpu_qlen set to 1000
random: crng init done

According to the line beginning "apm: BIOS version 1.2", boot code "apm=on" may be redundant but harmless. Installed once more with boot codes "apm=on loglevel=7". Booting ended exactly as above.  Any problem evident?  What should follow "random: crng init done"?

Thanks!                     ... P.
8
Off-Topic - Tiny Core Lounge / Re: Linux desktop on your phone...
« Last post by vinceASPECT on March 29, 2026, 11:26:41 AM »
Hello forum,

My rants about full GUI Linux on your phone missed
The point of telling you about the free play store app called
"Swap no root"

I don't know if just loading and setting it's swap works?

But I am under the impression that another tiny little script file
Needs to sit in the Android folder of the  phone.

I did this file and set a 2 giG swap which certainly improves this entry level
Phone performance....a lot

The APP itself infers that only itself is required

I hope you can get good performance using this free APP on any $25 entry level phone

Thanks
C

9
Off-Topic - Tiny Core Lounge / Simple and free text chat APP
« Last post by vinceASPECT on March 29, 2026, 10:59:48 AM »
Hi forum,

Can anybody point me to a ridicously simple " free  text chat APP"
Which works on Android and Apple

Very lightweight and basic
Thank s

C

Ps.....if I was thinking about a similar app but in a web browser....

I would just be thinking of being able to just type your messages in the ddress bar
Followed by your nickname and a private number ..... And then the recipient
Sees the message in his/her address bar and replies accordingly

Maybe it exists....I just don't know of it
10
TCB Talk / Re: Tiny Core v17.0 upgrade issues
« Last post by Stefann on March 29, 2026, 10:23:37 AM »
On configuration of the cable,
Probably easiest if I just share my "init code".
It's probably a bit dirty. I was learning the technology while doing the job.
It's a combination of code I grabbed from the internet with personal additions.
so.. baudrate is 11520
After this initialisation I just read the output.
The "temp" is a data structure I use for temporary results.

Code: [Select]
int start_meter(char * dev)
{ struct  termios pts = { 0 };  /* termios settings on port */
  int fd;

     /* some things we want to set arbitrarily */
   pts.c_lflag &= ~ICANON;
   pts.c_lflag &= ~(ECHO | ECHOCTL | ECHONL);
   pts.c_cflag |= HUPCL;
   pts.c_cc[VMIN] = 1;
   pts.c_cc[VTIME] = 0;
   
   /* Standard CR/LF handling: this is a dumb terminal.
    * Do no translation:
    *  no NL -> CR/NL mapping on output, and
    *  no CR -> NL mapping on input.
    */
   pts.c_oflag |= ONLCR;

   pts.c_iflag &= ~ICRNL;

  /* set hardware flow control by default */
  pts.c_cflag |= CRTSCTS;
  pts.c_iflag &= ~(IXON | IXOFF | IXANY);
  /* set 9600 bps speed by default */
  // cfsetospeed(&pts, B9600);
  // cfsetispeed(&pts, B9600);
  cfsetospeed(&pts, B115200);
  cfsetispeed(&pts, B115200);

  temp.E_night      = -1.0;
  temp.E_day        = -1.0;
  temp.E_rnight     = -1.0;
  temp.E_rday       = -1.0;
  temp.E_power      = -1.0;
  temp.E_rpower     = -1.0;
  temp.E_id         = -1.0;
  temp.gaz_time_sec = -1.0;
  temp.gaz_count    = -1.0;

  fd = open(dev, O_RDWR);
  if (fd>=0)
     tcsetattr(fd, TCSANOW, &pts);
  return fd;

}
Pages: [1] 2 3 ... 10