summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2021-04-25 17:49:24 +0000
committerChristos Zoulas <christos@zoulas.com>2021-04-25 17:49:24 +0000
commit480a3425621cba0563b12d925ff7be96390e8903 (patch)
treed291814e0822540258e0cacda025bee2e77754ec
parentf027887361450a5a58b472da72117cfb7f9a5f7e (diff)
downloadfile-git-480a3425621cba0563b12d925ff7be96390e8903.tar.gz
Add as a comment how to convert the json list of family ids to magic
-rw-r--r--magic/Magdir/uf24
1 files changed, 3 insertions, 1 deletions
diff --git a/magic/Magdir/uf2 b/magic/Magdir/uf2
index f3afbb72..cf193d4b 100644
--- a/magic/Magdir/uf2
+++ b/magic/Magdir/uf2
@@ -1,6 +1,6 @@
#------------------------------------------------------------------------------
-# $File: uf2,v 1.1 2021/04/24 19:58:24 christos Exp $
+# $File: uf2,v 1.2 2021/04/25 17:49:24 christos Exp $
# uf2: file(1) magic for UF2 firmware image files
#
# https://github.com/microsoft/uf2
@@ -15,6 +15,8 @@
>8 lelong &0x0001 \b, not main flash
>8 lelong &0x1000 \b, file container
>8 lelong &0x2000 \b, family
+# jq -r '.[] | ">>28\tlelong\t\(.id)\t\(.description)"' uf2families.json | \
+# sort -n -k 3
>>28 lelong 0x00ff6919 ST STM32L4xx
>>28 lelong 0x04240bdf ST STM32L5xx
>>28 lelong 0x16573617 Microchip (Atmel) ATmega32