upload_manifest.py: fix python3 support

In python3, octal constants like 0777 are not supported. The form
0o777 must be used instead, and it also works on python2.

Noticed when running upload_manifest.py using python3.

Reviewed-by: Tomasz Grabiec <tgrabiec@gmail.com>
Signed-off-by: Nadav Har'El <nyh@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
musl: bring in crypt functions

Reviewed-by: Nadav Har'El <nyh@cloudius-systems.com>
Signed-off-by: Glauber Costa <glommer@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
aarch64: dtb: get the base address of pl011 from dtb

and reuse the early console for the full console class,
or we will lose the base address setting.

Signed-off-by: Claudio Fontana <claudio.fontana@huawei.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>