Configuration : what is magic

In ramips we got platform.sh

What is that magic about? where do we get that number and what its use?

eg:
youku-yk1)
[ "$magic" != "27051956" ] && {
echo "Invalid image type."
return 1
}
return 0
;;

0x27051956 is the magic number of uImage

The magic number verification in platform.sh is deprecated in OpenWrt master, and replaced with generic metadata verification.

1 Like

OK so it was based on which bootloader used. And so, the device that shared same used same magic number. right ?

Thanks for the reply.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.