summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Hugo Villeneuve [Wed, 5 Nov 2025 17:09:58 +0000 (12:09 -0500)]
tlv_eeprom: delete old key before updating if it already exists
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Hugo Villeneuve [Wed, 5 Nov 2025 16:50:16 +0000 (11:50 -0500)]
tlv_eeprom: make sure key exist when deleting it
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Hugo Villeneuve [Wed, 5 Nov 2025 04:38:46 +0000 (23:38 -0500)]
tlv_eeprom: suppress -Wstringop-truncation warning for false positive
Suppress this warning:
tlv_eeprom.c:490:17: warning: ‘__builtin_strncpy’ specified bound 256 equals destination size [-Wstringop-truncation]
490 | strncpy(data, strval, MAX_TLV_VALUE_LEN);
| ^
Data is a fixed-length buffer, and no terminating null character is required,
thus this warning is a false positive.
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Hugo Villeneuve [Wed, 5 Nov 2025 05:14:05 +0000 (00:14 -0500)]
tlv-eeprom: adapt for integration with hvtlv
Replace calls to i2c_eeprom_read/write and call eeprom_block_read/write
from main.c.
Use zlib crc32 function.
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Hugo Villeneuve [Wed, 5 Nov 2025 16:32:48 +0000 (11:32 -0500)]
tlv_eeprom: suppress success log messages
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Hugo Villeneuve [Wed, 5 Nov 2025 05:04:16 +0000 (00:04 -0500)]
tlv_eeprom: convert local functions to public scope
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Hugo Villeneuve [Tue, 4 Nov 2025 17:15:40 +0000 (12:15 -0500)]
tlv_eeprom: remove U-Boot specific code
Hugo Villeneuve [Tue, 4 Nov 2025 20:20:15 +0000 (15:20 -0500)]
tlv_eeprom: fix comparison of integer expressions of different signedness
Fixes the following warnings:
tlv_eeprom.c:246:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
246 | for (i = 0; i < ARRAY_SIZE(tlv_code_list); i++) {
| ^
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Hugo Villeneuve [Tue, 4 Nov 2025 16:24:24 +0000 (11:24 -0500)]
tlv_eeprom: import code from U-Boot v2026.01-rc1
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Hugo Villeneuve [Wed, 5 Nov 2025 05:13:56 +0000 (00:13 -0500)]
Add kernel/U-Boot compatibility header file
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Hugo Villeneuve [Tue, 4 Nov 2025 18:27:23 +0000 (13:27 -0500)]
Remove include of <linux/printk.h> in kernel.h
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Hugo Villeneuve [Tue, 4 Nov 2025 18:25:18 +0000 (13:25 -0500)]
Import kernel.h from U-Boot
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Hugo Villeneuve [Wed, 5 Nov 2025 20:48:49 +0000 (15:48 -0500)]
Add Yocto recipe
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Hugo Villeneuve [Mon, 17 Nov 2025 15:34:37 +0000 (10:34 -0500)]
options: redefine help to replace -? with -h
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Hugo Villeneuve [Tue, 4 Nov 2025 18:02:54 +0000 (13:02 -0500)]
Initial import
Setup autotools project.
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>