This is to ensure correct behavior based on language standards:
"If the destination type is unsigned, the resulting value is the least unsigned integer congruent to the source integer (modulo 2^n where n is the number of bits used to represent the unsigned type). [ Note: In a two’s complement representation, this conversion is conceptual and there is no change in the bit pattern (if there is no truncation). —end note ]
from Hyzoom (BWQ518).
Shibby`s changes:
- add Adminer - little, single file PHP script for mysql administration
- move nginx and mysql GUI under "Web Server" menu.
- compile mySQL then NGINX is defined
Taken from Hyzoom (BWQ518).
Info for devs: if you have a problem with compilation then you have to prepare own .host.tgz archive under mysql dorectory.
1) copy mysql directory to other location.
2) run ./configure
3) compile parts of mysql on the host with the host gcc (non-cross-compile):
make -C mysql/vio
make -C mysql/mysys
make -C mysql/strings
make -C mysql/dbug
make -C mysql/regex
make -C mysql/sql gen_lex_hash
make -C mysql/scripts comp_sql
make -C mysql/extra comp_err
4) copy files:
mysql/sql/gen_lex_hash
mysql/scripts/comp_sql
mysql/extra/comp_err
to mysql/host directory
5) compress host directory as .host.tgz and copy it under tomato router/mysql/ (overwrite exist file)
6) now you should be able to compile mysql
Reverted commit required manually enable USB ports by gpio 0 line. This works on Netgear`s routers but i afraid to broke USb support on other routers.
Better/safer is revert it for now.